[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:
Michael Brown
2012-03-29 14:01:55 +01:00
parent 0d2fba2887
commit 493f194531
3 changed files with 362 additions and 0 deletions
+1
View File
@@ -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 )
/** @} */
+2
View File
@@ -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 */