From a1879195a727d7b90347ed11f86d85fac6541df7 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 10 Jul 2024 14:39:34 +0200 Subject: Client + Discovery: Fetch dscovery at startup using DiscoveryStartup With a manager that locks and copies such that no race conditions happen --- wrappers/python/eduvpn_common/loader.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wrappers/python/eduvpn_common/loader.py') diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index b74741f..4bfc55f 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -8,6 +8,7 @@ from eduvpn_common.types import ( ProxyReady, ProxySetup, ReadRxBytes, + RefreshList, TokenGetter, TokenSetter, VPNStateChange, @@ -90,6 +91,7 @@ def initialize_functions(lib: CDLL) -> None: c_void_p, ) lib.RenewSession.argtypes, lib.RenewSession.restype = [c_int], c_void_p + lib.DiscoveryStartup.argtypes, lib.DiscoveryStartup.restype = [RefreshList], c_void_p lib.SetTokenHandler.argtypes, lib.SetTokenHandler.restype = ( [ TokenGetter, -- cgit v1.2.3