blob: c86d3cca7d5c6903bbf16232810d33f093831439 (
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
|
#ifndef COMMON_H
#define COMMON_H
struct server;
struct update_dirty_rect {
int id;
int x, y;
int width, height;
};
struct bufinfo {
int id;
int width, height;
int stride;
int format;
};
#define CMD_TYPE_BUF 1
#define CMD_TYPE_DIRT 2
struct cmd_buf {
int type;
union cmds {
struct update_dirty_rect dirty;
struct bufinfo buf;
} u;
};
struct server *server_create(int sock_fd);
void server_destroy(struct server *server);
struct client;
struct client *client_create(int sock_fd);
void client_destroy(struct client *client);
#endif
|