trmsg_close_topics()
#
The trmsg_close_topics()
function closes the specified topics in the given tranger
instance, ensuring proper resource cleanup.
Prototype
int trmsg_close_topics(
json_t *tranger,
const topic_desc_t *descs
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A pointer to the |
|
|
A pointer to an array of topic descriptors specifying the topics to be closed. |
Return Value
Returns 0
on success, or a negative value if an error occurs during topic closure.
Notes
Ensure that trmsg_open_topics()
was previously called before invoking this function to close topics properly.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples