summaryrefslogtreecommitdiffhomepage
path: root/src/loader/sel.c
diff options
context:
space:
mode:
authorMarvin Borner2021-07-07 00:40:28 +0200
committerMarvin Borner2021-07-07 00:40:28 +0200
commit736d2b820d968915516d1662b84f9995d53895a3 (patch)
treee38c1f01be3d0d5e99677c921b971f543b586240 /src/loader/sel.c
parentb2880945ae17ad857bd425540acd3dc75b2cff6b (diff)
Started graphical selection interface
Diffstat (limited to 'src/loader/sel.c')
-rw-r--r--src/loader/sel.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/loader/sel.c b/src/loader/sel.c
new file mode 100644
index 0000000..c4303a4
--- /dev/null
+++ b/src/loader/sel.c
@@ -0,0 +1,20 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+// Selection interface
+
+#include <cfg.h>
+#include <def.h>
+#include <log.h>
+#include <sel.h>
+
+static u8 sel_entry(struct cfg_entry *entry)
+{
+ vga_log("> '%s' (%s)\n", entry->name, entry->path);
+ return 0;
+}
+
+void sel_draw(void)
+{
+ vga_clear();
+
+ cfg_foreach(&sel_entry);
+}