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>
Showing
- board/ait/cam_enc_4xx/cam_enc_4xx.c 2 additions, 1 deletionboard/ait/cam_enc_4xx/cam_enc_4xx.c
- common/cmd_pxe.c 2 additions, 1 deletioncommon/cmd_pxe.c
- common/menu.c 31 additions, 11 deletionscommon/menu.c
- doc/README.menu 3 additions, 1 deletiondoc/README.menu
- include/menu.h 3 additions, 1 deletioninclude/menu.h
Loading
Please register or sign in to comment