summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'server.h')
-rw-r--r--server.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/server.h b/server.h
index 80400a1..46fac3f 100644
--- a/server.h
+++ b/server.h
@@ -58,7 +58,8 @@ struct server {
char *rcon_password;
/* For announce messages */
- struct uring_task_buf mcast_buf;
+ struct uring_task ann_task;
+ struct uring_task_buf ann_buf;
/* For checking idle status */
struct idle *idle;
@@ -66,8 +67,8 @@ struct server {
unsigned idle_count;
/* For reading config files */
- struct uring_task_buf tbuf;
struct uring_task task;
+ struct uring_task_buf tbuf;
struct list_head list;
};
@@ -82,6 +83,8 @@ bool server_start(struct cfg *cfg, struct server *server);
bool server_stop(struct cfg *cfg, struct server *server);
+bool server_announce(struct cfg *cfg, struct server *server, int fd);
+
bool server_commit(struct cfg *cfg, struct server *server);
bool server_add_remote(struct cfg *cfg, struct server *server,