summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/eduvpn_common/loader.py')
-rw-r--r--wrappers/python/eduvpn_common/loader.py23
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,
)