tranger2_write_topic_var()

tranger2_write_topic_var()#

The tranger2_write_topic_var() function updates the variable metadata of a specified topic in the TimeRanger database.

Prototype

int tranger2_write_topic_var(
    json_t  *tranger,
    const char  *topic_name,
    json_t  *jn_topic_var
);

Parameters

Key

Type

Description

tranger

json_t *

A pointer to the TimeRanger database instance.

topic_name

const char *

The name of the topic whose variable metadata is to be updated.

jn_topic_var

json_t *

A JSON object containing the new variable metadata for the topic. The ownership of this object is transferred to tranger2_write_topic_var().


Return Value

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

Notes

This function modifies the variable metadata of a topic, which may include user-defined flags or other dynamic properties.

Prototype

// Not applicable in JS

Prototype

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