summaryrefslogtreecommitdiff
path: root/vpn/plugins/vici-client.c
blob: e4cfa9a7e3932d08955babc40a51a3a3ac4b58a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
}