From 736d2b820d968915516d1662b84f9995d53895a3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Jul 2021 00:40:28 +0200 Subject: Started graphical selection interface --- src/loader/inc/cfg.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/loader/inc/cfg.h') 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 -- cgit v1.2.3