summaryrefslogtreecommitdiff
path: root/include/bootflow.h
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-05-02 08:46:56 -0600
committerSimon Glass <[email protected]>2025-05-30 09:49:33 +0100
commitf769735f88fe8d864a895b275b4148616ffe2a29 (patch)
tree3d7940c0a7baec9dd430231f25ac0f4856491581 /include/bootflow.h
parent06a9d88e4d887ea4c7395636d2cfb52948ab4112 (diff)
expo: Split setting up the menu from adding items
Some callers may wish to add items later as they are discovered. Split the setup code into its own function, to permit this. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/bootflow.h')
-rw-r--r--include/bootflow.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index 75d88d47884..8dcc8f96e11 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -656,8 +656,23 @@ struct bootflow_img *bootflow_img_add(struct bootflow *bflow, const char *fname,
int bootflow_get_seq(const struct bootflow *bflow);
/**
+ * bootflow_menu_setup() - Set up a menu for bootflows
+ *
+ * Set up the expo, initially empty
+ *
+ * @std: bootstd information
+ * @text_mode: true to show the menu in text mode, false to use video display
+ * @expp: Returns the expo created, on success
+ * Return: 0 if OK, -ve on error
+ */
+int bootflow_menu_setup(struct bootstd_priv *std, bool text_mode,
+ struct expo **expp);
+
+/**
* bootflow_menu_start() - Start up a menu for bootflows
*
+ * Set up the expo and add items
+ *
* @std: bootstd information
* @text_mode: true to show the menu in text mode, false to use video display
* @expp: Returns the expo created, on success