tranger2_close_list()

tranger2_close_list()#

The function tranger2_close_list() closes a previously opened list, which can be a real-time memory list (rt_mem), a real-time disk list (rt_disk), or a non-real-time list.

Prototype

int tranger2_close_list(
    json_t *tranger,
    json_t *list
);

Parameters

Key

Type

Description

tranger

json_t *

A pointer to the TimeRanger database instance.

list

json_t *

A pointer to the list object to be closed.


Return Value

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

Notes

This function ensures that resources associated with the list are properly released. If the list is a real-time list, it stops receiving updates.

Prototype

// Not applicable in JS

Prototype

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