summaryrefslogtreecommitdiffabout
path: root/src/vclient.h
blob: 8bb3cdfdf339479b24bc4903270cf6f9c8ed24d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
struct vcli_sockaddr;
typedef struct vcli_sockaddr *vcli_sockaddr_t;

vcli_sockaddr_t vcli_parse_sockaddr(char const *arg);

typedef struct vcli_conn {
	int fd;
	char *secret;
	int resp;
	char *base;
	size_t bufmax;
	size_t bufsize;
} vcli_conn_t;

int vcli_write(vcli_conn_t *conn);
int vcli_read_response(vcli_conn_t *conn);
int vcli_vasprintf(vcli_conn_t *conn, const char *fmt, va_list ap);
int vcli_asprintf(vcli_conn_t *conn, const char *fmt, ...);
void vcli_disconnect(vcli_conn_t *conn);
int vcli_connect(struct vsm *vsm, vcli_conn_t *conn);

Return to:

Send suggestions and report system problems to the System administrator.