trmsg_get_active_md()

trmsg_get_active_md()#

trmsg_get_active_md() retrieves the metadata of the active message associated with the specified key from the given list.

Prototype

json_t *trmsg_get_active_md(
    json_t      *list,
    const char  *key
);

Parameters

Key

Type

Description

list

json_t *

The list containing messages.

key

const char *

The key identifying the message whose active metadata is to be retrieved.


Return Value

A pointer to a json_t dictionary containing the active message’s metadata. The returned value is not owned by the caller.

Notes

The returned metadata is part of the internal data structure and should not be modified or freed by the caller.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples