Skip to content

Commit

Permalink
Added GetConnectionMaxLayer to CXWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
FrayxRulez committed Mar 11, 2019
1 parent 028d86f commit 4fd5f33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os/windows/CXWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ int64 VoIPControllerWrapper::GetPreferredRelayID(){
return controller->GetPreferredRelayID();
}

int32_t VoIPControllerWrapper::GetConnectionMaxLayer(){
return controller->GetConnectionMaxLayer();
}

void VoIPControllerWrapper::SetEncryptionKey(const Platform::Array<uint8>^ key, bool isOutgoing){
if(key->Length!=256)
throw ref new Platform::InvalidArgumentException("Encryption key must be exactly 256 bytes long");
Expand Down
2 changes: 2 additions & 0 deletions os/windows/CXWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ namespace libtgvoip{
static Platform::String^ GetVersion();
int64 GetPreferredRelayID();
void SetAudioOutputGainControlEnabled(bool enabled);

static int32_t GetConnectionMaxLayer();
static void UpdateServerConfig(Platform::String^ json);
static void SwitchSpeaker(bool external);
//static Platform::String^ TestAesIge();
Expand Down

0 comments on commit 4fd5f33

Please sign in to comment.