diff options
Diffstat (limited to 'src/loader/inc/cfg.h')
-rw-r--r-- | src/loader/inc/cfg.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/loader/inc/cfg.h b/src/loader/inc/cfg.h new file mode 100644 index 0000000..a214db2 --- /dev/null +++ b/src/loader/inc/cfg.h @@ -0,0 +1,22 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#ifndef CFG_H +#define CFG_H + +#include <def.h> + +// Global config element index (can actually be anything but wth) +#define CFG_GLOBAL 0 + +enum cfg_key { + CFG_NONE, + CFG_NAME, + CFG_TIMEOUT, + CFG_PATH, +}; + +const void *cfg_get(u8 index, enum cfg_key key); +void cfg_exec(void); +void cfg_print(void); + +#endif |