expo: Update bootflow_menu_poll() to return a sequence ID
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:55 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:33 +0000 (09:49 +0100)
commit06a9d88e4d887ea4c7395636d2cfb52948ab4112
tree687e56b55bf793e4f5d9d2d92980f39bc51bfbca
parentf8f8f822c3ea699afdf743100327c17f85d473c3
expo: Update bootflow_menu_poll() to return a sequence ID

Rather than returning a bootflow, return the index of the bootflow. This
will allow callers to do their own translation to bootflows or some
other data structure.

Also return a special code when the user tries to move the pointer, so
that the caller can cancel the boot-menu timeout, if this is in use.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootflow_menu.c
cmd/bootflow.c
include/bootflow.h