diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-09 20:36:15 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-09 20:36:15 +0200 |
commit | dd6321c0acf7b0570811200a205cc4104bee49c7 (patch) | |
tree | 52da75427a0c1d237806fbebba23025afd79d28d /minecctl/minecctl.h | |
parent | 4ae60696aed938347cc1cf2a5d8f5a2b86292132 (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.h | 7 |
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; }; |