aboutsummaryrefslogtreecommitdiff
path: root/include/kpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kpl.h')
-rw-r--r--include/kpl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/kpl.h b/include/kpl.h
index adf366f..15933ee 100644
--- a/include/kpl.h
+++ b/include/kpl.h
@@ -4,3 +4,20 @@
// All headers in one file for including
#include "kpl/macro.h"
+#include "kpl/io.h"
+#include "kpl/thread.h"
+#include "kpl/memory.h"
+
+typedef struct {
+ int32_t argc, main_module_arg_index;
+ const char **argv, *module_extension;
+ kpl_config_io io;
+ kpl_config_thread thread;
+ kpl_config_memory memory;
+} kpl_config;
+
+void kpl_config_init(kpl_config *config);
+
+bool kpl_config_valid_module_exension(kpl_config *config, const char *module_name);
+
+int32_t kpl_config_parse_args(kpl_config *config, const int32_t argc, const char *argv[]);