summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-10 13:28:41 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-10 13:28:41 +0200
commit9daf6a0e6b461c6c2a16f810f722b9d10504bf90 (patch)
tree4ec8bcdce547abb458257ad1a24cf0249de17a9a /server.h
parentfae819296598100e41646e0bebc7d0bce45614f7 (diff)
Introduce a common task buffer and convert cfgdir and rcon to use it
Diffstat (limited to 'server.h')
-rw-r--r--server.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/server.h b/server.h
index 8e0b15f..fbaa3fa 100644
--- a/server.h
+++ b/server.h
@@ -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;
};