diff options
| author | Simon Glass <[email protected]> | 2023-06-01 10:22:47 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-14 12:54:51 -0400 |
| commit | 9af341502c1cdf1d40a41e8fe6c3922f1e409f33 (patch) | |
| tree | c6af5359c76642a09cac54ac92b3abeaa2a1efcd /doc/develop | |
| parent | b828ed7d79295cfebcb0f958f26a33664fae045c (diff) | |
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 <[email protected]>
Diffstat (limited to 'doc/develop')
| -rw-r--r-- | doc/develop/expo.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/develop/expo.rst b/doc/develop/expo.rst index 32dd7f09030..9565974a28e 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. |
