From 0ccbe0bc2248f4467d8af979618a866cb98c7215 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 28 May 2018 17:33:36 +0200 Subject: [menu] Add --hidden option to create hotkey-only entries --- src/include/ipxe/menu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/ipxe/menu.h') diff --git a/src/include/ipxe/menu.h b/src/include/ipxe/menu.h index 3cc99be48..33965cfdf 100644 --- a/src/include/ipxe/menu.h +++ b/src/include/ipxe/menu.h @@ -21,6 +21,8 @@ struct menu { const char *title; /** Menu items */ struct list_head items; + /** Hidden menu items, accessible via hotkey only */ + struct list_head hidden_items; }; /** A menu item */ @@ -40,7 +42,7 @@ struct menu_item { extern struct menu * create_menu ( const char *name, const char *title ); extern struct menu_item * add_menu_item ( struct menu *menu, const char *label, const char *text, int shortcut, - int is_default ); + int is_default, int is_hidden ); extern void destroy_menu ( struct menu *menu ); extern struct menu * find_menu ( const char *name ); extern int show_menu ( struct menu *menu, unsigned long timeout, -- cgit v1.2.3-55-g7522