convert the xobox menu to the new API so it can be used as an example for plugin devs

Includes some fixes in the api to handle this.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12907 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-03-25 14:31:56 +00:00
parent 14fea30548
commit 1f5ee2a366
3 changed files with 31 additions and 65 deletions

View file

@ -130,7 +130,7 @@ bool do_setting_from_menu(const struct menu_item_ex *temp);
static const struct menu_item_ex name = \
{MT_RETURN_ID|MENU_HAS_DESC| \
MENU_ITEM_COUNT(sizeof( name##_)/sizeof(*name##_)), \
{ .submenus = name##_},{.callback_and_desc = & name##__}};
{ .strings = name##_},{.callback_and_desc = & name##__}};
/* returns a value associated with the item */