summaryrefslogtreecommitdiff
path: root/shared/server-properties-options.h
blob: 05cba964dae8c3c11251e7e7db27d5d2fb0ebb89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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