summaryrefslogtreecommitdiff
path: root/minecctl/minecctl.h
blob: 604225d33d96f8bb5f8e0a948fc9c061226972a8 (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 *name;
	char *filename;
	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