From 1c54936626a4a30d0c6f69576a06ba3661f39dc6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 20 Apr 2022 14:28:08 +0200 Subject: Profiles: Implement SetProfileID instead of getting generic data --- wrappers/python/eduvpncommon/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wrappers/python/eduvpncommon/main.py') 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): -- cgit v1.2.3