diff options
| author | Simon Rettberg | 2018-05-28 17:33:36 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2018-05-28 17:33:36 +0200 |
| commit | 0ccbe0bc2248f4467d8af979618a866cb98c7215 (patch) | |
| tree | 3ec4a94c2fb53e1828b218b1c050b507bf1c308d /src/include/ipxe/menu.h | |
| parent | [console] Add option to update margins and bg-image of vesa mode console (diff) | |
| download | ipxe-0ccbe0bc2248f4467d8af979618a866cb98c7215.tar.gz ipxe-0ccbe0bc2248f4467d8af979618a866cb98c7215.tar.xz ipxe-0ccbe0bc2248f4467d8af979618a866cb98c7215.zip | |
[menu] Add --hidden option to create hotkey-only entries
Diffstat (limited to 'src/include/ipxe/menu.h')
| -rw-r--r-- | src/include/ipxe/menu.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |
