diff options
| author | David Härdeman <david@hardeman.nu> | 2020-06-21 23:42:05 +0200 | 
|---|---|---|
| committer | David Härdeman <david@hardeman.nu> | 2020-06-21 23:42:05 +0200 | 
| commit | 2b2d6ad0541544074fd54c86af6de2e2947e62ce (patch) | |
| tree | 84dee7bca11631193a86ee62e50916a3adc32ef4 /server.h | |
| parent | 0ba4f18ea6981b4d2b4eded11b2da4b2a2192d5b (diff) | |
Move mcast task to a per-server task to get refcounting right
Diffstat (limited to 'server.h')
| -rw-r--r-- | server.h | 7 | 
1 files changed, 5 insertions, 2 deletions
| @@ -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, | 
