From fec6ea1eba9cee325bbd9d82aa71b8ebf5ef90b0 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 15 Aug 2022 14:41:28 +0200 Subject: Refactor: Use constants for state callbacks instead of strings --- wrappers/python/src/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wrappers/python/src/__init__.py') diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index be06525..c0b6679 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -43,7 +43,7 @@ class DataError(Structure): _fields_ = [("data", c_void_p), ("error", c_void_p)] -VPNStateChange = CFUNCTYPE(None, c_char_p, c_char_p, c_char_p, c_char_p) +VPNStateChange = CFUNCTYPE(None, c_char_p, c_int, c_int, c_char_p) # Exposed functions # We have to use c_void_p instead of c_char_p to free it properly -- cgit v1.2.3