expo: Provide access to the current menu item
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:24 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commit9f44b544e1d8b23dec51567c657e81488a289d6d
tree6d8232cd634cc5a8b8c8b28543a6085f8eec6517
parentc43791c4871a0635594b1f08c57a54c4a533c710
expo: Provide access to the current menu item

Add functions to allow a caller to find out the current menu item and to
select a different one.

Update the event handling so that an attempt to change the current item
(e.g. by pressing the up-arrow key) is reported to the caller, since
this may be used to cancel an autoboot timeout.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/scene_menu.c
include/expo.h
test/boot/expo.c