summaryrefslogtreecommitdiff
path: root/include/cedit.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-05-02 08:46:21 -0600
committerSimon Glass <sjg@chromium.org>2025-05-30 09:49:32 +0100
commit5f993342962de816044f4172234ca7ecfd2bcaf6 (patch)
tree300d6df560a5984ed2c6a1b5abfa8ecd1780562d /include/cedit.h
parent932ea4a1044455e7bcb48fb1391ea7e06137fad5 (diff)
expo: Test some cedit actions
Refactor the action-processing code into a new cedit_do_action() function so we can call it from a test. Check moving to a new field and opening the menu, to ensure that rendering is correct. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cedit.h')
-rw-r--r--include/cedit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cedit.h b/include/cedit.h
index 856509f0c7f..a9305ceebcb 100644
--- a/include/cedit.h
+++ b/include/cedit.h
@@ -13,6 +13,7 @@
struct abuf;
struct expo;
+struct expo_action;
struct scene;
struct udevice;
struct video_priv;
@@ -63,6 +64,18 @@ int cedit_prepare(struct expo *exp, struct video_priv **vid_privp,
struct scene **scnp);
/**
+ * cedit_do_action() - Process an action on a cedit
+ *
+ * @exp: Expo to use
+ * @scn: Current scene
+ * @vid_priv: Private data for the video device
+ * @act: Action to process
+ * Return: 0 on success, -EAGAIN if there was no action taken
+ */
+int cedit_do_action(struct expo *exp, struct scene *scn,
+ struct video_priv *vid_priv, struct expo_action *act);
+
+/**
* cedit_write_settings() - Write settings in FDT format
*
* Sets up an FDT with the settings