diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-22 14:42:20 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-22 14:42:20 +0100 |
| commit | 22f9d7bafc60f56259e74df98e544b5820cfca5b (patch) | |
| tree | fdc4886d035d04623666cb3132f3054bda77e889 /wrappers/python/eduvpncommon/main.py | |
| parent | eb5a1f2e9d47530c1896f49a2c4e7ffc82bcce4f (diff) | |
Save a local copy of the disco list
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 + |
