]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - doc/README.menu
menu: export menu_default_choice() function
[people/ms/u-boot.git] / doc / README.menu
index c9493984cada06c01ab256fc1867d478354e98a6..a8999cab51188c1e12c09e38f2cde8c15d4415e1 100644 (file)
@@ -65,6 +65,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.