From 5b80fdd91ef48c114b6d87b826014466cefc5d03 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 12 Jul 2020 03:00:02 +0200 Subject: Oops...missed git add:ing some files --- shared/server-properties-options.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 shared/server-properties-options.h (limited to 'shared') 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 -- cgit v1.2.3