From 22f9d7bafc60f56259e74df98e544b5820cfca5b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 22 Mar 2022 14:42:20 +0100 Subject: Save a local copy of the disco list --- wrappers/python/eduvpncommon/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wrappers/python/eduvpncommon/main.py') 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 + -- cgit v1.2.3