diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-25 19:14:50 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-25 19:14:50 +0200 |
commit | a71d847b0a752375e8fa2c82c634a800bede2f9b (patch) | |
tree | 3b31c7f6eac81ec320e56fba03cf7aebc3d44356 /minecctl/minecctl.h | |
parent | 28606456dd6b110326c3027ea078b0409afeba3b (diff) |
Only check for password if/when required
Diffstat (limited to 'minecctl/minecctl.h')
-rw-r--r-- | minecctl/minecctl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/minecctl/minecctl.h b/minecctl/minecctl.h index 4918ca0..17dc9c6 100644 --- a/minecctl/minecctl.h +++ b/minecctl/minecctl.h @@ -11,15 +11,21 @@ struct cfg { char *password; const char *cfgdir; const char *addrstr; + const 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; - int fd; }; extern bool use_colors; +char *ask_password(); + +int connect_any(struct list_head *addrs, bool may_fail); + #endif |