diff options
author | Anatolij Gustschin | 2013-03-23 14:52:04 +0000 |
---|---|---|
committer | Anatolij Gustschin | 2013-03-29 09:35:34 +0100 |
commit | 6a3439fdadb7b98e72883b90eb717a04cd748e44 (patch) | |
tree | 4b40cfc6aa5328cd72557d9d4d95f3720301e7d3 /include/menu.h | |
parent | fc9d64ffcd94c1e22675830eae13956cc4fd822d (diff) |
menu: export menu_default_choice() function
Checking the default menu item and obtaining its data can
be useful in custom menu code. Export menu_default_choice()
function which serves this purpose.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/menu.h')
-rw-r--r-- | include/menu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h index f4dd5af165f..d8200eee837 100644 --- a/include/menu.h +++ b/include/menu.h @@ -29,6 +29,7 @@ int menu_get_choice(struct menu *m, void **choice); int menu_item_add(struct menu *m, char *item_key, void *item_data); int menu_destroy(struct menu *m); void menu_display_statusline(struct menu *m); +int menu_default_choice(struct menu *m, void **choice); #if defined(CONFIG_MENU_SHOW) int menu_show(int bootdelay); |