diff options
Diffstat (limited to 'wrappers/python/eduvpncommon/main.py')
| -rw-r--r-- | wrappers/python/eduvpncommon/main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wrappers/python/eduvpncommon/main.py b/wrappers/python/eduvpncommon/main.py index 3bb0c48..ac13344 100644 --- a/wrappers/python/eduvpncommon/main.py +++ b/wrappers/python/eduvpncommon/main.py @@ -1,4 +1,4 @@ -from . import lib, VPNStateChange +from . import lib, VPNStateChange, GetDataError from ctypes import * @VPNStateChange @@ -14,3 +14,8 @@ def Register(name, config_directory, state_callback): dir_bytes = config_directory.encode('utf-8') lib.Register(name_bytes, dir_bytes, state_callback) +def GetDiscoServers(): + servers, serversErr = GetDataError(lib.GetServersList()) + organizations, organizationsErr = GetDataError(lib.GetOrganizationsList()) + return servers, serversErr, organizations, organizationsErr + |
