diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-12 03:00:02 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-12 03:00:02 +0200 |
commit | 5b80fdd91ef48c114b6d87b826014466cefc5d03 (patch) | |
tree | 140b8c242b558de64a9406e6d03ae4ff5b2e2787 /shared | |
parent | f06ff46151c38b2259c5ee4ae83d38c6f6fc0c8c (diff) |
Oops...missed git add:ing some files
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 |