diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-23 11:31:39 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-10-29 12:08:36 +0100 |
| commit | e85070a3fb601e1872d121ce3c1c9d39f8f41036 (patch) | |
| tree | 96d57bf647f2cdc3408ad5c3163ca91ed571cb63 /wrappers/python/eduvpn_common/loader.py | |
| parent | 0076386bca8b1e49673f50323cd147ac080cfc2f (diff) | |
All: Refactor to latest ProxyGuard
Diffstat (limited to 'wrappers/python/eduvpn_common/loader.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/loader.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index e163148..8ac6372 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -5,7 +5,7 @@ from eduvpn_common import __version__ from eduvpn_common.types import ( BoolError, DataError, - ProxyReady, + HandlerError, ProxySetup, ReadRxBytes, RefreshList, @@ -134,14 +134,27 @@ def initialize_functions(lib: CDLL) -> None: ], BoolError, ) - lib.StartProxyguard.argtypes, lib.StartProxyguard.restype = ( + lib.NewProxyguard.argtypes, lib.NewProxyguard.restype = ( [ c_int, - c_char_p, + c_int, c_int, c_char_p, ProxySetup, - ProxyReady, ], - c_void_p, + HandlerError, + ) + lib.ProxyguardTunnel.argtypes, lib.ProxyguardTunnel.restype = ( + [ + c_int, + c_int, + c_int, + ], + c_char_p, + ) + lib.ProxyguardPeerIPs.argtypes, lib.ProxyguardPeerIPs.restype = ( + [ + c_int, + ], + DataError, ) |
