trmsg_get_instances()
#
trmsg_get_instances()
retrieves the list of instances associated with a specific message key from the given list.
Prototype
json_t *trmsg_get_instances(
json_t *list,
const char *key
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The list containing messages, from which instances will be retrieved. |
|
|
The key identifying the message whose instances are to be retrieved. |
Return Value
A list of instances (json_t *
) associated with the specified message key. The returned value is not owned by the caller and must not be modified or freed.
Notes
The returned list corresponds to the messages[message_key].instances
structure in the data model.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples