summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-cui.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
committerGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
commit25cb540c8b73a044911ef7dab5b57879de1779e9 (patch)
tree98ba5afa33d41c7c063d8d50d706d55cdd1c57ea /ui/ncurses/nc-cui.h
parentea0a5877530a801713c80963c918c0a6f4072d8a (diff)
downloadtalos-petitboot-25cb540c8b73a044911ef7dab5b57879de1779e9.tar.gz
talos-petitboot-25cb540c8b73a044911ef7dab5b57879de1779e9.zip
CUI add empty item
Add a CUI hot-key 'o' that opens a new empty menu item. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'ui/ncurses/nc-cui.h')
-rw-r--r--ui/ncurses/nc-cui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h
index 79c41a4..b225caa 100644
--- a/ui/ncurses/nc-cui.h
+++ b/ui/ncurses/nc-cui.h
@@ -26,10 +26,13 @@
#include "nc-ked.h"
struct cui_opt_data {
+ const char *name;
+ struct pb_kexec_data *kd;
+
+ /* optional data */
const struct device *dev;
const struct boot_option *opt;
uint32_t opt_hash;
- struct pb_kexec_data *kd;
};
/**
@@ -66,6 +69,7 @@ int cui_ked_run(struct pmenu_item *item);
void cui_abort(struct cui *cui);
void cui_resize(struct cui *cui);
void cui_on_exit(struct pmenu *menu);
+void cui_on_open(struct pmenu *menu);
int cui_run_cmd(struct pmenu_item *item);
static inline struct cui *cui_from_arg(void *arg)
OpenPOWER on IntegriCloud