summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 19:22:47 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 19:54:51 +0300
commit9af341502c1cdf1d40a41e8fe6c3922f1e409f33 (patch)
treec6af5359c76642a09cac54ac92b3abeaa2a1efcd /doc
parentb828ed7d79295cfebcb0f958f26a33664fae045c (diff)
downloadu-boot-9af341502c1cdf1d40a41e8fe6c3922f1e409f33.tar.xz
expo: Allow setting the start of the dynamic-ID range
Provide a way to set this value so that it is easy to separate the statically allocated IDs (generated by the caller) from those generated dynamically by expo itself. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/develop/expo.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/develop/expo.rst b/doc/develop/expo.rst
index 32dd7f0903..9565974a28 100644
--- a/doc/develop/expo.rst
+++ b/doc/develop/expo.rst
@@ -85,6 +85,9 @@ or even the IDs of objects. Programmatic creation of many items in a loop can be
handled by allocating space in the enum for a maximum number of items, then
adding the loop count to the enum values to obtain unique IDs.
+Where dynamic IDs are need, use expo_set_dynamic_start() to set the start value,
+so that they are allocated above the starting (enum) IDs.
+
All text strings are stored in a structure attached to the expo, referenced by
a text ID. This makes it easier at some point to implement multiple languages or
to support Unicode strings.