aboutsummaryrefslogtreecommitdiff
path: root/boot/scene_internal.h
diff options
context:
space:
mode:
authorSimon Glass2023-06-01 10:22:50 -0600
committerTom Rini2023-07-14 12:54:51 -0400
commitce72c9ec260d18cc127c275daf3ec1d18c230e2a (patch)
treefff5af8ebc7999e26e59f484a68754d6977cc6b3 /boot/scene_internal.h
parentae45d6cf5a564851a9b9d58e05425e4cf1dfe8aa (diff)
expo: Use flags for objects
We currently have just a 'hide' property for each object. In preparation for adding more properties, convert the struct to use a flags value, instead of individual booleans. This is more extensible. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene_internal.h')
-rw-r--r--boot/scene_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/scene_internal.h b/boot/scene_internal.h
index 9f173dd749f..24a2ba6a6a3 100644
--- a/boot/scene_internal.h
+++ b/boot/scene_internal.h
@@ -55,6 +55,17 @@ int scene_obj_add(struct scene *scn, const char *name, uint id,
enum scene_obj_t type, uint size, struct scene_obj **objp);
/**
+ * scene_obj_flag_clrset() - Adjust object flags
+ *
+ * @scn: Scene to update
+ * @id: ID of object to update
+ * @clr: Bits to clear in the object's flags
+ * @set: Bits to set in the object's flags
+ * Returns 0 if OK, -ENOENT if the object was not found
+ */
+int scene_obj_flag_clrset(struct scene *scn, uint id, uint clr, uint set);
+
+/**
* scene_menu_arrange() - Set the position of things in the menu
*
* This updates any items associated with a menu to make sure they are