blob: 7146a08ef4ee6fa1f6a609c5a939a6852d7be044 (
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
31
|
#ifndef foominecctlhfoo
#define foominecctlhfoo
struct server {
bool file_read;
char *filename;
char *shortname;
char *rcon_password;
struct list_head rcon_addrs;
struct list_head mc_addrs;
struct list_head list;
};
struct cfg {
/* command line arguments */
char *cfgdir;
char *password;
char *addrstr;
char *mcaddrstr;
char *cmdstr;
bool force_stop;
/* bookkeeping */
void (*cmd)(struct cfg *cfg);
struct list_head servers;
};
void read_server_config(struct server *server);
#endif
|