[Cbe-oss-dev] [patch 6/8] petitboot: Add generic UI menu support

Jeremy Kerr jk at ozlabs.org
Sat Feb 21 14:22:50 EST 2009


Hi Geoff,

> Add support for a generic UI menu system.

I'm in the middle of messing with the twin UI at the moment, so am not 
sure if this will suit. I'll let you know as I progress.

> +EXTERN_C struct menu *menu_init(void* ctx);
> +EXTERN_C void menu_delete(struct menu *menu);
> +EXTERN_C void menu_draw(const struct menu *menu);
> +EXTERN_C void menu_key_up(struct menu *menu);
> +EXTERN_C void menu_key_down(struct menu *menu);
> +EXTERN_C int menu_key_execute(struct menu *menu);
> +EXTERN_C void menu_set_item_text(struct menu *menu, struct menu_item

Do we actually have and C++ users of this?

Cheers,


Jeremy



More information about the cbe-oss-dev mailing list