]> git.sur5r.net Git - u-boot/commit
menu: Add support for user defined item choice function
authorPali Rohár <pali.rohar@gmail.com>
Sat, 23 Mar 2013 14:50:40 +0000 (14:50 +0000)
committerAnatolij Gustschin <agust@denx.de>
Fri, 29 Mar 2013 08:35:33 +0000 (09:35 +0100)
commitfc9d64ffcd94c1e22675830eae13956cc4fd822d
treef14a977c82a3fb1ee3f606d71f8c1ff5306ee1f1
parent009d75ccc11d27b9a083375a88bb93cb746b4800
menu: Add support for user defined item choice function

Selecting menu items is currently done in menu_interactive_choice()
by reading the user input strings from standard input.

Extend menu_interactive_choice() to support user defined function
for selecting menu items. This function and its argument can be
specified when creating the menu.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
board/ait/cam_enc_4xx/cam_enc_4xx.c
common/cmd_pxe.c
common/menu.c
doc/README.menu
include/menu.h