summaryrefslogtreecommitdiff
path: root/wrappers/python
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-06 11:32:03 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-06 11:32:03 +0200
commita03caa0a79ec6234bf1447037edc9684c6c27279 (patch)
tree3648cb1017b338ad3c1dd01101034d924930c359 /wrappers/python
parent5dad968aa90ded83d57211426bc186f6d609ef06 (diff)
Client + Python: Pass language to Register
Diffstat (limited to 'wrappers/python')
-rw-r--r--wrappers/python/eduvpn_common/loader.py1
-rw-r--r--wrappers/python/eduvpn_common/main.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py
index 99f5eb6..0192815 100644
--- a/wrappers/python/eduvpn_common/loader.py
+++ b/wrappers/python/eduvpn_common/loader.py
@@ -83,6 +83,7 @@ def initialize_functions(lib):
lib.Register.argtypes, lib.Register.restype = [
c_char_p,
c_char_p,
+ c_char_p,
VPNStateChange,
c_int,
], c_void_p
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 9d63c4d..03e1045 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -32,9 +32,10 @@ def state_callback(name, old_state, new_state, data):
class EduVPN(object):
- def __init__(self, name: str, config_directory: str):
+ def __init__(self, name: str, config_directory: str, language: str):
self.name = name
self.config_directory = config_directory
+ self.language = language
# Load the library
self.lib = load_lib()
@@ -86,7 +87,7 @@ class EduVPN(object):
raise Exception("Already registered")
register_err = self.go_function(
- self.lib.Register, self.config_directory, state_callback, debug
+ self.lib.Register, self.config_directory, self.language, state_callback, debug
)
if register_err: