From 4d0fcab10e91ad5962837f7dd428f5bca1c8c980 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 25 Jun 2020 17:01:24 +0200 Subject: Flesh out minecctl some more --- minecctl/minecctl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 minecctl/minecctl.h (limited to 'minecctl/minecctl.h') diff --git a/minecctl/minecctl.h b/minecctl/minecctl.h new file mode 100644 index 0000000..4918ca0 --- /dev/null +++ b/minecctl/minecctl.h @@ -0,0 +1,25 @@ +#ifndef foominecctlhfoo +#define foominecctlhfoo + +struct server { + char *filename; + char *shortname; + struct list_head list; +}; + +struct cfg { + char *password; + const char *cfgdir; + const char *addrstr; + char *cmdstr; + struct server *server; + void (*cmd)(struct cfg *cfg); + struct list_head addrs; + struct list_head known_servers; + int fd; +}; + +extern bool use_colors; + +#endif + -- cgit v1.2.3