diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-09-17 15:45:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 08:58:52 +0200 |
commit | 7923392c561136bd7ac3d9e28cc61c18be3a8b3f (patch) | |
tree | 623a6239c8eebb4e4ae6f6d6ee0b50bf15f63c78 /include | |
parent | 3212e8462e876bd47fa14a0ba9fd455f37458d52 (diff) | |
download | barebox-7923392c561136bd7ac3d9e28cc61c18be3a8b3f.tar.gz barebox-7923392c561136bd7ac3d9e28cc61c18be3a8b3f.tar.xz |
menu: add auto select support
this will allow to automaticaly run an entry if the user do no choice
this is usefull for boot menu as example
with menu -s -m boot -A 3 -d "Auto Boot in"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/menu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h index 22bfc2301f..cc9d0af7fd 100644 --- a/include/menu.h +++ b/include/menu.h @@ -42,6 +42,9 @@ struct menu { char *name; char *display; + int auto_select; + char *auto_display; + struct list_head list; struct list_head entries; @@ -74,6 +77,7 @@ struct menu* menu_get_by_name(char *name); int menu_show(struct menu *m); int menu_set_selected_entry(struct menu *m, struct menu_entry* me); int menu_set_selected(struct menu *m, int num); +int menu_set_auto_select(struct menu *m, int delay); struct menu* menu_get_menus(void); /* |