summaryrefslogtreecommitdiff
path: root/shared/config-parser.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-07-05 19:04:13 +0200
committerDavid Härdeman <david@hardeman.nu>2020-07-05 19:04:13 +0200
commit2c9ba58d3142243b439dd83b254b1e6eba94d52c (patch)
tree3bda6601ff665951b271f5989869e7aa23afc972 /shared/config-parser.h
parent45af0d8c8603f037efe5f7bc1b1020b9cc42acdd (diff)
Add per-server announce setting
Diffstat (limited to 'shared/config-parser.h')
-rw-r--r--shared/config-parser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/config-parser.h b/shared/config-parser.h
index e1d73d2..4e3cbca 100644
--- a/shared/config-parser.h
+++ b/shared/config-parser.h
@@ -26,10 +26,18 @@ enum server_start_method {
SERVER_START_METHOD_EXEC,
};
+enum server_announce {
+ SERVER_ANNOUNCE_UNDEFINED,
+ SERVER_ANNOUNCE_ALWAYS,
+ SERVER_ANNOUNCE_NEVER,
+ SERVER_ANNOUNCE_WHEN_RUNNING,
+};
+
struct server_config {
char *filename;
enum server_type type;
char *pretty_name;
+ enum server_announce announce;
uint16_t announce_port;
unsigned idle_timeout;
enum server_stop_method stop_method;