trmsg_open_topics()
#
trmsg_open_topics()
initializes and opens topics for message handling using TimeRanger, ensuring that the necessary structures are available for message storage and retrieval.
Prototype
int trmsg_open_topics(
json_t *tranger,
const topic_desc_t *descs
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A JSON object representing the TimeRanger instance where topics will be opened. |
|
|
An array of topic descriptors defining the structure and properties of the topics to be opened. |
Return Value
Returns 0
on success, or a negative error code if the operation fails.
Notes
Ensure that tranger2_startup()
has been called before invoking trmsg_open_topics()
to properly initialize the TimeRanger environment.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples