]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - doc/README.menu
menu: Add support for user defined item choice function
[karo-tx-uboot.git] / doc / README.menu
index 6ce6bbab80728db810d75196e0c5615b4e9efb0a..c9493984cada06c01ab256fc1867d478354e98a6 100644 (file)
@@ -51,7 +51,9 @@ struct menu;
  * menu_create() - Creates a menu handle with default settings
  */
 struct menu *menu_create(char *title, int timeout, int prompt,
-                               void (*item_data_print)(void *));
+                               void (*item_data_print)(void *),
+                               char *(*item_choice)(void *),
+                               void *item_choice_data);
 
 /*
  * menu_item_add() - Adds or replaces a menu item