[prev in list] [next in list] [prev in thread] [next in thread]
List: u-boot
Subject: Re: [U-Boot] [PATCH 1/2] menu: Added support to use user defined functions
From: Pali =?ISO-8859-1?Q?Roh=E1r?= <pali.rohar () gmail ! com>
Date: 2012-06-03 10:05:32
Message-ID: 15235792.3zc5azm5Nt () pali
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 03 June 2012 11:59:16 Marek Vasut wrote:
> > --- 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?
This is alternative function for menu entry choice. It is used in
function menu_interactive_choice. If item_data_choice is NULL
default code with readline_into_buffer is used.
ANSI bootmenu command (in next patch) is using its own function.
--
Pali Rohár
pali.rohar@gmail.com
["signature.asc" (application/pgp-signature)]
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic