trmsg_record_instances()
#
trmsg_record_instances()
retrieves a list of cloned instances associated with a specific message key from the given list.
Prototype
json_t *trmsg_record_instances(
json_t *list,
const char *key,
json_t *jn_filter // owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The list containing the messages. |
|
|
The key identifying the message whose instances are to be retrieved. |
|
|
A JSON object specifying filtering criteria for the instances. The caller owns this object. |
Return Value
A JSON list of cloned instances matching the specified key and filter. The caller is responsible for decrementing the reference count of the returned object.
Notes
The returned list is a deep copy of the instances, ensuring that modifications do not affect the original data. The caller must manage the memory of the returned object by calling json_decref()
when it is no longer needed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples