1 #ifndef __VPN_MANAGER_H__
2 #define __VPN_MANAGER_H__
4 #include "dvpnlib-common.h"
11 struct vpn_connection;
13 struct vpn_setting_entry {
21 typedef void (*vpn_connection_added_cb)(
22 struct vpn_connection *connection,
24 typedef void (*vpn_connection_removed_cb)(
25 struct vpn_connection *connection,
30 GList *vpn_get_connections(void);
31 enum dvpnlib_err dvpnlib_vpn_manager_create(GHashTable *settings,
32 dvpnlib_reply_cb callback,
34 enum dvpnlib_err dvpnlib_vpn_manager_remove(const char *path,
35 dvpnlib_reply_cb callback,
37 enum dvpnlib_err dvpnlib_vpn_manager_register_agent(const char *path);
38 enum dvpnlib_err dvpnlib_vpn_manager_unregister_agent(const char *path);
43 void dvpnlib_vpn_manager_set_connection_added_cb(
44 vpn_connection_added_cb cb,
46 void dvpnlib_vpn_manager_unset_connection_added_cb();
47 void dvpnlib_vpn_manager_set_connection_removed_cb(
48 vpn_connection_removed_cb cb,
50 void dvpnlib_vpn_manager_unset_connection_removed_cb();