diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-03-29 11:58:46 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-04-18 14:05:19 +0200 |
| commit | 537a09d4334f1555b80d87b7d935328963a21739 (patch) | |
| tree | 071eeb52a4ed79a1e1b49831c80d6a2336cee7cf /wrappers/python/eduvpn_common/loader.py | |
| parent | 61871cb9ea7605e5350e9612edf8c9d603da2883 (diff) | |
Client + Server: Implement a token updater callback
Diffstat (limited to 'wrappers/python/eduvpn_common/loader.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/loader.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index 036c201..673d180 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -8,6 +8,7 @@ from eduvpn_common.types import ( cToken, DataError, ReadRxBytes, + UpdateToken, VPNStateChange, ) @@ -68,6 +69,7 @@ def initialize_functions(lib: CDLL) -> None: ], c_void_p lib.Deregister.argtypes, lib.Deregister.restype = [c_char_p], None lib.FreeConfig.argtypes, lib.FreeConfig.restype = [c_void_p], None + lib.FreeTokens.argtypes, lib.FreeTokens.restype = [c_void_p], None lib.FreeDiscoOrganizations.argtypes, lib.FreeDiscoOrganizations.restype = [ c_void_p ], None @@ -112,6 +114,10 @@ def initialize_functions(lib: CDLL) -> None: VPNStateChange, c_int, ], c_void_p + lib.SetTokenUpdater.argtypes, lib.SetTokenUpdater.restype = [ + c_char_p, + UpdateToken, + ], c_void_p lib.RemoveCustomServer.argtypes, lib.RemoveCustomServer.restype = [ c_char_p, c_char_p, |
