[menu] Add menu user interface
Inspired-by: Robin Smidsrød <robin@smidsrod.no> Tested-by: Robin Smidsrød <robin@smidsrod.no> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -251,6 +251,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_x509_test ( ERRFILE_OTHER | 0x00290000 )
|
||||
#define ERRFILE_cms ( ERRFILE_OTHER | 0x002a0000 )
|
||||
#define ERRFILE_imgtrust ( ERRFILE_OTHER | 0x002b0000 )
|
||||
#define ERRFILE_menu_ui ( ERRFILE_OTHER | 0x002c0000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -43,5 +43,7 @@ extern struct menu_item * add_menu_item ( struct menu *menu, const char *label,
|
||||
int is_default );
|
||||
extern void destroy_menu ( struct menu *menu );
|
||||
extern struct menu * find_menu ( const char *name );
|
||||
extern int show_menu ( struct menu *menu, unsigned int timeout_ms,
|
||||
struct menu_item **selected );
|
||||
|
||||
#endif /* _IPXE_MENU_H */
|
||||
|
||||
Reference in New Issue
Block a user