mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
expo: Export scene_menuitem_find() for use in internal code
Make this function available to other expo code so we can use it to look up a menu item. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d65ccbb601
commit
6e648fa781
2 changed files with 14 additions and 2 deletions
|
@ -222,4 +222,16 @@ int scene_iter_objs(struct scene *scn, expo_scene_obj_iterator iter,
|
|||
int expo_iter_scene_objs(struct expo *exp, expo_scene_obj_iterator iter,
|
||||
void *priv);
|
||||
|
||||
/**
|
||||
* scene_menuitem_find() - Find the menu item for an ID
|
||||
*
|
||||
* Looks up the menu to find the item with the given ID
|
||||
*
|
||||
* @menu: Menu to check
|
||||
* @id: ID to look for
|
||||
* Return: Menu item, or NULL if not found
|
||||
*/
|
||||
struct scene_menitem *scene_menuitem_find(const struct scene_obj_menu *menu,
|
||||
int id);
|
||||
|
||||
#endif /* __SCENE_INTERNAL_H */
|
||||
|
|
|
@ -33,8 +33,8 @@ void scene_menu_destroy(struct scene_obj_menu *menu)
|
|||
scene_menuitem_destroy(item);
|
||||
}
|
||||
|
||||
static struct scene_menitem *scene_menuitem_find(struct scene_obj_menu *menu,
|
||||
int id)
|
||||
struct scene_menitem *scene_menuitem_find(const struct scene_obj_menu *menu,
|
||||
int id)
|
||||
{
|
||||
struct scene_menitem *item;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue