summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/eduvpn_common')
-rw-r--r--wrappers/python/eduvpn_common/loader.py4
-rw-r--r--wrappers/python/eduvpn_common/main.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py
index 08179ee..b74741f 100644
--- a/wrappers/python/eduvpn_common/loader.py
+++ b/wrappers/python/eduvpn_common/loader.py
@@ -49,8 +49,8 @@ def initialize_functions(lib: CDLL) -> None:
lib.Deregister.argtypes, lib.Deregister.restype = [], None
lib.ExpiryTimes.argtypes, lib.ExpiryTimes.restype = [], DataError
lib.FreeString.argtypes, lib.FreeString.restype = [c_void_p], None
- lib.DiscoOrganizations.argtypes, lib.DiscoOrganizations.restype = [c_int], DataError
- lib.DiscoServers.argtypes, lib.DiscoServers.restype = [c_int], DataError
+ lib.DiscoOrganizations.argtypes, lib.DiscoOrganizations.restype = [c_int, c_char_p], DataError
+ lib.DiscoServers.argtypes, lib.DiscoServers.restype = [c_int, c_char_p], DataError
lib.GetConfig.argtypes, lib.GetConfig.restype = (
[
c_int,
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 4582c8d..cb81e53 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -178,13 +178,13 @@ class EduVPN(object):
forwardError(server_err)
return server
- def get_disco_organizations(self) -> str:
- orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations)
+ def get_disco_organizations(self, search="") -> str:
+ orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations, search)
# TODO: Log error
return orgs
- def get_disco_servers(self) -> str:
- servers, _ = self.go_cookie_function(self.lib.DiscoServers)
+ def get_disco_servers(self, search="") -> str:
+ servers, _ = self.go_cookie_function(self.lib.DiscoServers, search)
# TODO: Log error
return servers