summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpncommon/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/eduvpncommon/main.py')
-rw-r--r--wrappers/python/eduvpncommon/main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wrappers/python/eduvpncommon/main.py b/wrappers/python/eduvpncommon/main.py
index 53b9831..8d2de9c 100644
--- a/wrappers/python/eduvpncommon/main.py
+++ b/wrappers/python/eduvpncommon/main.py
@@ -47,6 +47,10 @@ def register_callback(eduvpn):
)
+def SendData(data):
+ lib.SendData(data.encode("utf-8"))
+
+
class EduVPN(object):
def __init__(self, name, config_directory):
self.event_handler = EventHandler()
@@ -75,6 +79,9 @@ 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)
+
class EventHandler(object):
def __init__(self):