diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
| commit | 1c54936626a4a30d0c6f69576a06ba3661f39dc6 (patch) | |
| tree | 426c76b4c55cf9a9efbc7bd1aa957baec57b2892 /wrappers/python/eduvpncommon/main.py | |
| parent | 77c9f266553cbadfd5fb150a26c2162b705f151e (diff) | |
Profiles: Implement SetProfileID instead of getting generic data
Diffstat (limited to 'wrappers/python/eduvpncommon/main.py')
| -rw-r--r-- | wrappers/python/eduvpncommon/main.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wrappers/python/eduvpncommon/main.py b/wrappers/python/eduvpncommon/main.py index 8d2de9c..694fc59 100644 --- a/wrappers/python/eduvpncommon/main.py +++ b/wrappers/python/eduvpncommon/main.py @@ -47,8 +47,8 @@ def register_callback(eduvpn): ) -def SendData(data): - lib.SendData(data.encode("utf-8")) +def SetProfileID(profile_id): + lib.SetProfileID(profile_id.encode("utf-8")) class EduVPN(object): @@ -79,8 +79,8 @@ class EduVPN(object): def callback(self, old_state, new_state, data): self.event.run(old_state, new_state, data) - def send_data(self, data): - return SendData(data) + def set_profile(self, profile_id): + return SetProfileID(profile_id) class EventHandler(object): |
