aboutsummaryrefslogtreecommitdiff
path: root/include/cedit.h
diff options
context:
space:
mode:
authorSimon Glass2023-08-14 16:40:25 -0600
committerTom Rini2023-08-25 13:54:33 -0400
commit040b04685ea4c47a5148c2fcc2ff6dfdd83bc714 (patch)
treec7b2257b3916b3769b15ffa336389b559364dd76 /include/cedit.h
parent431b21fd407f4a76cdc182ee40184311562e5505 (diff)
expo: Split out cedit into its own header
Before adding more functions to this interface, create a new header for the configuration editor. Fix up the expo header guard while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cedit.h')
-rw-r--r--include/cedit.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/cedit.h b/include/cedit.h
new file mode 100644
index 00000000000..21de12dfe7a
--- /dev/null
+++ b/include/cedit.h
@@ -0,0 +1,33 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2023 Google LLC
+ * Written by Simon Glass <sjg@chromium.org>
+ */
+
+#ifndef __CEDIT_H
+#define __CEDIT_H
+
+struct expo;
+struct video_priv;
+
+/**
+ * cedit_arange() - Arrange objects in a configuration-editor scene
+ *
+ * @exp: Expo to update
+ * @vid_priv: Private info of the video device
+ * @scene_id: scene ID to arrange
+ * Returns: 0 if OK, -ve on error
+ */
+int cedit_arange(struct expo *exp, struct video_priv *vid_priv, uint scene_id);
+
+/**
+ * cedit_run() - Run a configuration editor
+ *
+ * This accepts input until the user quits with Escape
+ *
+ * @exp: Expo to use
+ * Returns: 0 if OK, -ve on error
+ */
+int cedit_run(struct expo *exp);
+
+#endif /* __CEDIT_H */