summaryrefslogtreecommitdiff
path: root/vpn/plugins/vpn.h
diff options
context:
space:
mode:
Diffstat (limited to 'vpn/plugins/vpn.h')
-rwxr-xr-xvpn/plugins/vpn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vpn/plugins/vpn.h b/vpn/plugins/vpn.h
index bf56728d..61758636 100755
--- a/vpn/plugins/vpn.h
+++ b/vpn/plugins/vpn.h
@@ -40,9 +40,12 @@ enum vpn_state {
VPN_STATE_AUTH_FAILURE = 6,
};
+typedef void (*vpn_event_callback)(struct vpn_provider *provider, int state);
+
struct vpn_driver {
int flags;
int (*notify) (DBusMessage *msg, struct vpn_provider *provider);
+ void (*set_event_cb) (vpn_event_callback event_cb, struct vpn_provider *provider);
int (*connect) (struct vpn_provider *provider,
struct connman_task *task, const char *if_name,
vpn_provider_connect_cb_t cb, const char *dbus_sender,