aboutsummaryrefslogtreecommitdiff
path: root/include/bootflow.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-06 08:52:42 -0600
committerTom Rini <trini@konsulko.com>2023-01-16 18:26:51 -0500
commite64c29521c0e6111b446fd67e85c6dd3d491103c (patch)
treea50e37bd6cb9fde926a7fcbbb4e32d2effb53bc4 /include/bootflow.h
parentd985f1dbddb241c21a9150abf59dd386ba1ffe05 (diff)
downloadu-boot-e64c29521c0e6111b446fd67e85c6dd3d491103c.zip
u-boot-e64c29521c0e6111b446fd67e85c6dd3d491103c.tar.gz
u-boot-e64c29521c0e6111b446fd67e85c6dd3d491103c.tar.bz2
bootstd: Support setting a theme for the menu
Allow a theme to be set. For now this is very simple, just a default font size to use for all elements. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootflow.h')
-rw-r--r--include/bootflow.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index e7a0956..c201246 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -7,6 +7,7 @@
#ifndef __bootflow_h
#define __bootflow_h
+#include <dm/ofnode_decl.h>
#include <linux/list.h>
struct bootstd_priv;
@@ -348,6 +349,15 @@ int bootflow_iter_uses_system(const struct bootflow_iter *iter);
int bootflow_menu_new(struct expo **expp);
/**
+ * bootflow_menu_apply_theme() - Apply a theme to a bootmenu
+ *
+ * @exp: Expo to update
+ * @node: Node containing the theme information
+ * Returns 0 on success, -ve on error
+ */
+int bootflow_menu_apply_theme(struct expo *exp, ofnode node);
+
+/**
* bootflow_menu_run() - Create and run a menu of available bootflows
*
* @std: Bootstd information