forked from virtualopensystems/vapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.h
More file actions
35 lines (25 loc) · 641 Bytes
/
client.h
File metadata and controls
35 lines (25 loc) · 641 Bytes
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
/*
* client.h
*/
#ifndef CLIENT_H_
#define CLIENT_H_
#include <limits.h>
#include "common.h"
#include "fd_list.h"
struct AppHandlers;
struct ClientStruct {
char sock_path[PATH_MAX];
int status;
int sock;
FdList fd_list;
struct AppHandlers handlers;
};
typedef struct ClientStruct Client;
enum VhostUserRequest;
Client* new_client(const char* path);
int init_client(Client* client);
int end_client(Client* client);
int set_handler_client(Client* client, struct AppHandlers* handlers);
int loop_client(Client* client);
int vhost_ioctl(Client* client, enum VhostUserRequest request, ...);
#endif /* CLIENT_H_ */