From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 3 Jun 2012 11:59:16 +0200 Subject: [U-Boot] [PATCH 1/2] menu: Added support to use user defined functions In-Reply-To: <1338136729-3907-2-git-send-email-pali.rohar@gmail.com> References: <1338136729-3907-1-git-send-email-pali.rohar@gmail.com> <1338136729-3907-2-git-send-email-pali.rohar@gmail.com> Message-ID: <201206031159.16888.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Pali Roh?r, Please CC proper custodians in order to get reviews next time. [...] > --- a/include/menu.h > +++ b/include/menu.h > @@ -21,12 +21,14 @@ > struct menu; > > struct menu *menu_create(char *title, int timeout, int prompt, > - void (*item_data_print)(void *)); > + void (*item_data_print)(void *), > + char *(*item_data_choice)(void *), Where is this item_data_choice() used? > + void *menu_data); > int menu_default_set(struct menu *m, char *item_key); > int menu_get_choice(struct menu *m, void **choice); > int menu_item_add(struct menu *m, char *item_key, void *item_data); > int menu_destroy(struct menu *m); > -void menu_display_statusline(struct menu *m); > +void menu_display_statusline(void *menu_data); > > #if defined(CONFIG_MENU_SHOW) > int menu_show(int bootdelay); Best regards, Marek Vasut