On Sun, 24 Mar 2013 01:50:40 +0100 Anatolij Gustschin <ag...@denx.de> wrote:
> From: Pali Rohár <pali.ro...@gmail.com> > > 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.ro...@gmail.com> > Signed-off-by: Anatolij Gustschin <ag...@denx.de> > --- > Changes in v4: > - slightly rename the new item choice callback and its argument > - add documentation for added item choice callback > - search for menu item key only if the choice callback > returned a key (not NULL) > - do not change menu_display_statusline() function argument > (previous patch changed this menu API function but didn't > update documentation for this change. This change is > actually not needed, menu item data can be obtained by > exported menu_default_choice()) > - revise commit log > > No changes in v3 > > Changes in v2: > - Rebased on next > > board/ait/cam_enc_4xx/cam_enc_4xx.c | 3 +- > common/cmd_pxe.c | 3 +- > common/menu.c | 42 +++++++++++++++++++++++++--------- > doc/README.menu | 4 ++- > include/menu.h | 4 ++- > 5 files changed, 41 insertions(+), 15 deletions(-) applied to staging/ag...@denx.de. Thanks. Anatolij _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot