diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-20 13:22:50 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-20 13:22:50 -0400 |
| commit | 4e19e6ab1bd24466d9dcb0d8eea54a7e3d84d576 (patch) | |
| tree | c0c581d72a122c146d6308a16e0a7269d38ed984 /include/kpl.h | |
| parent | 87dfa262eb6d6b816351c03a01cc837a32b91ab4 (diff) | |
kpl config set module extension
Diffstat (limited to 'include/kpl.h')
| -rw-r--r-- | include/kpl.h | 17 |
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[]); |
