From 23aa6f84539ba320a91235fb81681d0754178f62 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 5 Jul 2021 23:22:24 +0200 Subject: ACPI and config parsing --- src/loader/inc/cfg.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/loader/inc/cfg.h (limited to 'src/loader/inc/cfg.h') 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 + +// 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 -- cgit v1.2.3