summaryrefslogtreecommitdiff
path: root/vpn/plugins/vici-client.h
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-06-07 06:34:12 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-06-07 06:34:12 +0000
commit4bab77a61ae220b590cf34cd0003f0606304bf5e (patch)
tree97b7f4faa778c4f726bb18a5052ed2046b514712 /vpn/plugins/vici-client.h
parent4dc972d927cd9f5854eb4f2d50cfafe931705e21 (diff)
parent3cd173b5ecdf1c61f1f8cbdeac35f62f79c0deb9 (diff)
downloadconnman-4bab77a61ae220b590cf34cd0003f0606304bf5e.tar.gz
connman-4bab77a61ae220b590cf34cd0003f0606304bf5e.tar.bz2
connman-4bab77a61ae220b590cf34cd0003f0606304bf5e.zip
Merge "Add child SA up/down event and terminate command" into tizensubmit/tizen/20170607.064606accepted/tizen/unified/20170608.072306
Diffstat (limited to 'vpn/plugins/vici-client.h')
-rw-r--r--vpn/plugins/vici-client.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/vpn/plugins/vici-client.h b/vpn/plugins/vici-client.h
index 9d08d7df..a33a8e46 100644
--- a/vpn/plugins/vici-client.h
+++ b/vpn/plugins/vici-client.h
@@ -39,15 +39,23 @@ typedef enum {
VICI_CMD_UNLOAD_AUTH,
VICI_CMD_LOAD_KEY,
VICI_CMD_INITIATE,
+ VICI_CMD_TERMINATE,
+ VICI_CMD_REGISTER_CHILD_UPDOWN,
VICI_CMD_MAX,
} VICIClientCmd;
+typedef enum {
+ VICI_EVENT_CHILD_UP,
+ VICI_EVENT_CHILD_DOWN,
+ VICI_EVENT_MAX,
+} VICIClientEvent;
#define VICI_DEFAULT_URI "/var/run/charon.vici"
typedef int (*vici_add_element)(VICISection *sect, const char *key,
const char *value, const char *subsection);
-typedef void (*vici_connect_reply_cb)(int err, void *user_data);
+typedef void (*vici_request_reply_cb)(int err, void *user_data);
+typedef void (*vici_event_cb)(VICIClientEvent event, void *user_data);
VICISection* vici_create_section(const char *name);
int add_subsection(const char* name, VICISection* child, VICISection* section);
@@ -65,8 +73,9 @@ int vici_add_cert_kvl(VICISection *section, const char *key,
int vici_initialize(VICIClient **vici_client);
int vici_deinitialize(VICIClient *vici_client);
-void vici_set_connect_reply_cb(VICIClient *vici_client, vici_connect_reply_cb reply_cb, gpointer user_data);
+void vici_set_request_reply_cb(VICIClient *vici_client, vici_request_reply_cb reply_cb, gpointer user_data);
int vici_send_request(VICIClient *vici_client, VICIClientCmd cmd, VICISection *root);
+int vici_set_event_cb(VICIClient *vici_client, vici_event_cb cb, gpointer user_data);
#ifdef __cplusplus
}