From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 28 Mar 2013 16:26:16 +0100 Subject: [U-Boot] [PATCH v4 1/4] menu: Add support for user defined item choice function In-Reply-To: <1364086240-13412-1-git-send-email-agust@denx.de> References: <1359731279-22431-2-git-send-email-pali.rohar@gmail.com> <1364086240-13412-1-git-send-email-agust@denx.de> Message-ID: <20130328162616.50c5a3b7@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 24 Mar 2013 01:50:40 +0100 Anatolij Gustschin wrote: > From: Pali Roh?r > > 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 > Signed-off-by: Anatolij Gustschin > --- > 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