blob: 5778d1324af3273c0c6f0d8dcd6e6ea1405e03e1 (
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 foominecctlhfoo
#define foominecctlhfoo
#include <sys/types.h>
#include <dirent.h>
struct cfg {
const char *dir_path;
DIR *dir;
char *rcon_password;
char *rcon_addrstr;
char *mc_addrstr;
char **commands;
uint16_t listen_port_min;
uint16_t listen_port_max;
uint16_t mc_port_min;
uint16_t mc_port_max;
uint16_t rcon_port_min;
uint16_t rcon_port_max;
bool force_stop;
bool default_set;
bool server_list_loaded;
bool (*cmd)(struct cfg *cfg);
struct list_head servers;
};
void dump_config(struct cfg *cfg);
#endif
|