diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-26 03:23:41 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-26 03:23:41 +0200 |
commit | 06a2edfc72a894054ed710d338504242f15d6071 (patch) | |
tree | 00ab94400cab0a5d46dbd68648539003732eb19e /minecctl/minecctl.h | |
parent | c9575bb333c036e5470d0ff872169cdb4626e023 (diff) |
Make the server handling in minecctl saner
Diffstat (limited to 'minecctl/minecctl.h')
-rw-r--r-- | minecctl/minecctl.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/minecctl/minecctl.h b/minecctl/minecctl.h index 405a217..7146a08 100644 --- a/minecctl/minecctl.h +++ b/minecctl/minecctl.h @@ -2,30 +2,30 @@ #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 { - char *password; + /* command line arguments */ char *cfgdir; + char *password; 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(); + /* bookkeeping */ + void (*cmd)(struct cfg *cfg); + struct list_head servers; +}; -int connect_any(struct list_head *addrs, bool may_fail); +void read_server_config(struct server *server); #endif |