summaryrefslogtreecommitdiff
path: root/minecctl/minecctl.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-07-09 20:36:15 +0200
committerDavid Härdeman <david@hardeman.nu>2020-07-09 20:36:15 +0200
commitdd6321c0acf7b0570811200a205cc4104bee49c7 (patch)
tree52da75427a0c1d237806fbebba23025afd79d28d /minecctl/minecctl.h
parent4ae60696aed938347cc1cf2a5d8f5a2b86292132 (diff)
Implement a basic init command in minecctl to create an initial example config
Diffstat (limited to 'minecctl/minecctl.h')
-rw-r--r--minecctl/minecctl.h7
1 files changed, 6 insertions, 1 deletions
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 <sys/types.h>
+#include <dirent.h>
+
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;
};