From a71d847b0a752375e8fa2c82c634a800bede2f9b Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 25 Jun 2020 19:14:50 +0200 Subject: Only check for password if/when required --- minecctl/minecctl.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'minecctl/minecctl.h') 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 -- cgit v1.2.3