diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 01:26:31 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 02:13:47 +0200 |
commit | c35b2d2d8848957c1761fe107352fd989c3915f4 (patch) | |
tree | ba88bacd5c546a48ae4c67a8b76dd6ae39fc6905 /include/server.h | |
parent | d68c5feaee9b294d071c0825f5600e316c728708 (diff) |
server: Stack-allocate the server
Diffstat (limited to 'include/server.h')
-rw-r--r-- | include/server.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdbool.h> #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); |