Initial implementation of seatd and libseat

This commit is contained in:
Kenny Levinsen 2020-07-31 00:22:18 +02:00
parent f85434de66
commit 61716a2c77
32 changed files with 4744 additions and 0 deletions

26
include/server.h Normal file
View file

@ -0,0 +1,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