tranger2_open_topic()
#
The tranger2_open_topic()
function opens a topic in the TimeRanger database. If the topic is already open, it returns the existing topic JSON object.
Prototype
json_t *tranger2_open_topic(
json_t *tranger,
const char *topic_name,
BOOL verbose
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A JSON object representing the TimeRanger database. |
|
|
The name of the topic to open. |
|
|
If |
Return Value
A JSON object representing the opened topic. The returned object is not owned by the caller and should not be modified or freed.
Notes
This function is idempotent, meaning that calling it multiple times with the same topic_name
will return the same JSON object without creating a new instance.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples