diff options
author | Simon Glass <sjg@chromium.org> | 2023-08-14 16:40:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-25 13:54:33 -0400 |
commit | 6e648fa781eea9ae0c5e130217ffeabbd45d9385 (patch) | |
tree | e8150aefad37ae854ca6af4f78b374349763378b /boot/scene_internal.h | |
parent | d65ccbb60138a34dfec583397666ceddab85e16d (diff) |
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>
Diffstat (limited to 'boot/scene_internal.h')
-rw-r--r-- | boot/scene_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/boot/scene_internal.h b/boot/scene_internal.h index 60b14344078..23e29cb349b 100644 --- a/boot/scene_internal.h +++ b/boot/scene_internal.h @@ -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 */ |