diff options
author | Marvin Borner | 2021-07-07 00:40:28 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-07 00:40:28 +0200 |
commit | 736d2b820d968915516d1662b84f9995d53895a3 (patch) | |
tree | e38c1f01be3d0d5e99677c921b971f543b586240 /src/loader/inc/cfg.h | |
parent | b2880945ae17ad857bd425540acd3dc75b2cff6b (diff) |
Started graphical selection interface
Diffstat (limited to 'src/loader/inc/cfg.h')
-rw-r--r-- | src/loader/inc/cfg.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/loader/inc/cfg.h b/src/loader/inc/cfg.h index 1332fe1..27b3ca3 100644 --- a/src/loader/inc/cfg.h +++ b/src/loader/inc/cfg.h @@ -15,7 +15,19 @@ enum cfg_key { CFG_PATH, }; -const void *cfg_get(u8 index, enum cfg_key key); -void cfg_exec(void); +struct cfg_entry { + u8 exists : 1; + char name[64]; + char path[64]; + struct dev *dev; +}; + +struct cfg { + u32 timeout; + struct cfg_entry entry[16]; // Up to 16 different entries +}; + +void cfg_foreach(u8 (*cb)(struct cfg_entry *)); +void cfg_read(void); #endif |