diff options
Diffstat (limited to 'vpn/plugins/vici-client.c')
-rw-r--r-- | vpn/plugins/vici-client.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vpn/plugins/vici-client.c b/vpn/plugins/vici-client.c new file mode 100644 index 00000000..e4cfa9a7 --- /dev/null +++ b/vpn/plugins/vici-client.c @@ -0,0 +1,46 @@ +#include <glib.h> + +#include <connman/log.h> +#include "ipsec.h" +#include "vici-client.h" + +struct request { +}; + +static struct request* vici_client_create_request(struct section* root) +{ + struct request* req; + + req = g_try_new0(struct req, 1); + if (!req) { + comman_error("Failed to create request"); + return NULL; + } + + return req; +} + +static int vici_client_send_command(struct request* req) +{ + return 0; +} + +int vici_client_initialize() +{ + /* + * Open socket to connect vici plugin + */ + return 0; +} + +int vici_client_deinitialize() +{ + return 0; +} + +int vici_client_send_request(const char* cmd, struct section* root) +{ + struct request* req = vici_client_send_request(root); + vici_client_send_command(req); + return 0; +} |