diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/server-properties-options.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/shared/server-properties-options.h b/shared/server-properties-options.h new file mode 100644 index 0000000..05cba96 --- /dev/null +++ b/shared/server-properties-options.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef fooserverpropertiesoptionshfoo +#define fooserverpropertiesoptionshfoo + +enum sprop_keys { + SPROP_KEY_INVALID = 0, + SPROP_KEY_SERVER_PORT, + SPROP_KEY_RCON_PORT, + SPROP_KEY_RCON_PASSWORD, +}; + +struct cfg_key_value_map sprop_key_map[] = { + { + .key_name = "server-port", + .key_value = SPROP_KEY_SERVER_PORT, + .value_type = CFG_VAL_TYPE_ADDRS, + }, + { + .key_name = "rcon.port", + .key_value = SPROP_KEY_RCON_PORT, + .value_type = CFG_VAL_TYPE_ADDRS, + }, + { + .key_name = "rcon.password", + .key_value = SPROP_KEY_RCON_PASSWORD, + .value_type = CFG_VAL_TYPE_STRING, + } +}; + +#endif |