aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 10:22:27 -0600
committerTom Rini <trini@konsulko.com>2023-07-14 12:54:50 -0400
commitdef898c458e65a71fb64cda370b4281cd026e48c (patch)
treefaea7eccfc9db4cee0dbcf4b3675b0d6acc5ae23 /include
parentd2043b5682558e81aa699ec5c5322a08d577aa86 (diff)
expo: Convert to using a string ID for the scene title
This is easier to deal with if it uses the existing string handling, since we will be able to use translations, etc. in the future. Update it to use an ID instead of a string. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/expo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/expo.h b/include/expo.h
index d242f48e30..8827f4b0b4 100644
--- a/include/expo.h
+++ b/include/expo.h
@@ -92,7 +92,7 @@ struct expo_string {
* @expo: Expo this scene is part of
* @name: Name of the scene (allocated)
* @id: ID number of the scene
- * @title: Title of the scene (allocated)
+ * @title_id: String ID of title of the scene (allocated)
* @sibling: Node to link this scene to its siblings
* @obj_head: List of objects in the scene
*/
@@ -100,7 +100,7 @@ struct scene {
struct expo *expo;
char *name;
uint id;
- char *title;
+ uint title_id;
struct list_head sibling;
struct list_head obj_head;
};
@@ -338,10 +338,10 @@ struct scene *expo_lookup_scene_id(struct expo *exp, uint scene_id);
* scene_title_set() - set the scene title
*
* @scn: Scene to update
- * @title: Title to set, NULL if none (this is allocated by this call)
- * Returns: 0 if OK, -ENOMEM if out of memory
+ * @title_id: Title ID to set
+ * Returns: 0 if OK
*/
-int scene_title_set(struct scene *scn, const char *title);
+int scene_title_set(struct scene *scn, uint title_id);
/**
* scene_obj_count() - Count the number of objects in a scene