summaryrefslogtreecommitdiff
path: root/minecctl/minecctl.h
blob: 405a2173c933c8845c2cc2ae5196ddeb1fc80163 (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 {
	char *filename;
	char *shortname;
	struct list_head list;
};

struct cfg {
	char *password;
	char *cfgdir;
	char *addrstr;
	char *mcaddrstr;
	char *cmdstr;
	struct server *server;
	void (*cmd)(struct cfg *cfg);
	bool force_stop;
	struct list_head addrs;
	struct list_head mcaddrs;
	struct list_head known_servers;
};

extern bool use_colors;

char *ask_password();

int connect_any(struct list_head *addrs, bool may_fail);

#endif