gobj_remove_persistent_attrs()

gobj_remove_persistent_attrs()#

Removes persistent and writable attributes from a hgobj. If jn_attrs is empty, all attributes are removed.

Prototype

int gobj_remove_persistent_attrs(
    hgobj gobj, 
    json_t *jn_attrs  // owned
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance from which persistent attributes should be removed.

jn_attrs

json_t *

A JSON object specifying the attributes to remove. If empty, all attributes are removed.


Return Value

Returns 0 on success, or -1 if the operation fails.

Notes

This function requires a global persistent attribute removal function to be set. If none is available, the function returns -1.

Prototype

// Not applicable in JS

Prototype

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