tranger2_close_topic()

tranger2_close_topic()#

The tranger2_close_topic() function closes an open topic in the TimeRanger database, releasing associated resources.

Prototype

int tranger2_close_topic(
    json_t  *tranger,
    const char *topic_name
);

Parameters

Key

Type

Description

tranger

json_t *

A pointer to the TimeRanger database instance.

topic_name

const char *

The name of the topic to be closed.


Return Value

Returns 0 on success, or a negative value on failure.

Notes

Closing a topic does not delete its data; it only releases resources associated with the open topic.

Prototype

// Not applicable in JS

Prototype

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