blob: 03bd9cad20b5481bac64dcd2a5db6afc03466262 (
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
|
#ifndef _SEATD_SERVER_H
#define _SEATD_SERVER_H
#include <stdbool.h>
#include "list.h"
struct poller;
struct client;
struct server {
bool running;
struct poller poller;
struct list seats;
};
struct server *server_create(void);
void server_destroy(struct server *server);
struct seat *server_get_seat(struct server *server, const char *seat_name);
int server_listen(struct server *server, const char *path);
int server_add_client(struct server *server, int fd);
#endif
|