[U-Boot] [PATCH v4 1/4] menu: Add support for user defined item choice function
Anatolij Gustschin
agust at denx.de
Thu Mar 28 16:26:16 CET 2013
On Sun, 24 Mar 2013 01:50:40 +0100
Anatolij Gustschin <agust at denx.de> wrote:
> From: Pali Rohár <pali.rohar at 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.rohar at gmail.com>
> Signed-off-by: Anatolij Gustschin <agust at 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/agust at denx.de. Thanks.
Anatolij
More information about the U-Boot
mailing list