summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-03-23 14:52:04 +0000
committerAnatolij Gustschin <agust@denx.de>2013-03-29 09:35:34 +0100
commit6a3439fdadb7b98e72883b90eb717a04cd748e44 (patch)
tree4b40cfc6aa5328cd72557d9d4d95f3720301e7d3 /doc
parentfc9d64ffcd94c1e22675830eae13956cc4fd822d (diff)
downloadu-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.zip
u-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.tar.gz
u-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.tar.bz2
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 'doc')
-rw-r--r--doc/README.menu5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/README.menu b/doc/README.menu
index c949398..a8999ca 100644
--- a/doc/README.menu
+++ b/doc/README.menu
@@ -66,6 +66,11 @@ int menu_item_add(struct menu *m, char *item_key, void *item_data);
int menu_default_set(struct menu *m, char *item_key);
/*
+ * menu_default_choice() - Set *choice to point to the default item's data
+ */
+int menu_default_choice(struct menu *m, void **choice);
+
+/*
* menu_get_choice() - Returns the user's selected menu entry, or the
* default if the menu is set to not prompt or the timeout expires.
*/