path: root/com32/menu/menu.h
diff options
authorH. Peter Anvin <hpa@zytor.com>2009-04-14 21:45:54 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-14 21:45:54 -0700
commit927a28f0f852b31950fd9d4f9d96049397d1eaa1 (patch)
treec0d0d260ad5b766bbcf64fe6fd1c014ed1a0f527 /com32/menu/menu.h
parent21a05a49eb12c727ead17a71dba3ec3cc6949c03 (diff)
menu: modify MENU SAVE to be a cascading default
Change MENU SAVE to be a cascading default that can be reverted with MENU NOSAVE. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu/menu.h')
1 files changed, 4 insertions, 2 deletions
diff --git a/com32/menu/menu.h b/com32/menu/menu.h
index 43f65947..98b6fa9b 100644
--- a/com32/menu/menu.h
+++ b/com32/menu/menu.h
@@ -60,6 +60,7 @@ struct menu_entry {
int entry; /* Entry number inside menu */
enum menu_action action;
unsigned char hotkey;
+ bool save; /* Save this entry if selected */
static inline bool is_disabled(struct menu_entry *me)
@@ -149,9 +150,11 @@ struct menu {
int nentries;
int nentries_space;
int defentry;
- int allowedit;
int timeout;
+ bool allowedit;
+ bool save; /* MENU SAVE default for this menu */
int curentry;
int curtop;
@@ -174,7 +177,6 @@ extern struct menu *root_menu, *start_menu, *hide_menu, *menu_list;
/* These are global parameters regardless of which menu we're displaying */
extern int shiftkey;
extern int hiddenmenu;
-extern bool menusave;
extern long long totaltimeout;
void parse_configs(char **argv);