@@ -143,7 +143,8 @@ typedef enum {
143
143
ENS_ALIAS , ///< alias comes from ENS
144
144
ADDRESS_BOOK_ALIAS , ///< alias comes from Address Book
145
145
QR_CODE_ALIAS , ///< alias is an address to be displayed as a QR Code
146
- INFO_LIST_ALIAS ///< alias is list of infos
146
+ INFO_LIST_ALIAS , ///< alias is list of infos
147
+ TAG_VALUE_LIST_ALIAS
147
148
} nbgl_contentValueAliasType_t ;
148
149
149
150
/**
@@ -158,8 +159,12 @@ typedef struct {
158
159
///< the QR Code
159
160
const char
160
161
* backText ; ///< used as title of the popping page, if not NULL, otherwise "item" is used
161
- const struct nbgl_contentInfoList_s * infolist ; ///< if aliasType is INFO_LIST_ALIAS
162
- nbgl_contentValueAliasType_t aliasType ; ///< type of alias
162
+ union {
163
+ const struct nbgl_contentInfoList_s * infolist ; ///< if aliasType is INFO_LIST_ALIAS
164
+ const struct nbgl_contentTagValueList_s
165
+ * tagValuelist ; ///< if aliasType is TAG_VALUE_LIST_ALIAS
166
+ };
167
+ nbgl_contentValueAliasType_t aliasType ; ///< type of alias
163
168
} nbgl_contentValueExt_t ;
164
169
165
170
/**
@@ -204,7 +209,7 @@ typedef void (*nbgl_contentActionCallback_t)(int token, uint8_t index, int page)
204
209
/**
205
210
* @brief This structure contains a list of [tag,value] pairs
206
211
*/
207
- typedef struct {
212
+ typedef struct nbgl_contentTagValueList_s {
208
213
const nbgl_contentTagValue_t
209
214
* pairs ; ///< array of [tag,value] pairs (nbPairs items). If NULL, callback is used instead
210
215
nbgl_contentTagValueCallback_t callback ; ///< function to call to retrieve a given pair
0 commit comments