From c35b2d2d8848957c1761fe107352fd989c3915f4 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 01:26:31 +0200 Subject: server: Stack-allocate the server --- include/server.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/server.h b/include/server.h index 03bd9ca..f280993 100644 --- a/include/server.h +++ b/include/server.h @@ -4,8 +4,8 @@ #include #include "list.h" +#include "poller.h" -struct poller; struct client; struct server { @@ -15,8 +15,8 @@ struct server { struct list seats; }; -struct server *server_create(void); -void server_destroy(struct server *server); +int server_init(struct server *server); +void server_finish(struct server *server); struct seat *server_get_seat(struct server *server, const char *seat_name); -- cgit v1.2.3