From dd6321c0acf7b0570811200a205cc4104bee49c7 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 9 Jul 2020 20:36:15 +0200 Subject: Implement a basic init command in minecctl to create an initial example config --- minecctl/minecctl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'minecctl/minecctl.h') diff --git a/minecctl/minecctl.h b/minecctl/minecctl.h index 16199a3..46c616a 100644 --- a/minecctl/minecctl.h +++ b/minecctl/minecctl.h @@ -2,14 +2,19 @@ #ifndef foominecctlhfoo #define foominecctlhfoo +#include +#include + struct cfg { - const char *cfgdir; + const char *dir_path; + DIR *dir; char *rcon_password; char *rcon_addrstr; char *mc_addrstr; char **commands; bool force_stop; bool default_set; + bool server_list_loaded; bool (*cmd)(struct cfg *cfg); struct list_head servers; }; -- cgit v1.2.3