diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-10 13:28:41 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-10 13:28:41 +0200 |
commit | 9daf6a0e6b461c6c2a16f810f722b9d10504bf90 (patch) | |
tree | 4ec8bcdce547abb458257ad1a24cf0249de17a9a /server.h | |
parent | fae819296598100e41646e0bebc7d0bce45614f7 (diff) |
Introduce a common task buffer and convert cfgdir and rcon to use it
Diffstat (limited to 'server.h')
-rw-r--r-- | server.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -37,6 +37,7 @@ struct server { /* For calling external start/stop executables */ char *stop_exec; char *start_exec; + struct uring_task exec_task; /* For systemd services */ char *systemd_service; @@ -56,12 +57,10 @@ struct server { unsigned idle_timeout; unsigned idle_count; - /* For config files */ - char buf[4096]; - size_t len; - - struct uring_task exec_task; + /* For reading config files */ + struct uring_task_buf tbuf; struct uring_task task; + struct list_head list; }; |