gobj_list_persistent_attrs()

gobj_list_persistent_attrs()#

Retrieves a list of persistent attributes for a given hgobj or all services if gobj is NULL.

Prototype

json_t *gobj_list_persistent_attrs(
    hgobj gobj,
    json_t *jn_attrs  // owned
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj whose persistent attributes should be listed. If NULL, lists attributes for all services.

jn_attrs

json_t *

A JSON object specifying which attributes to list. Can be a string, a list of keys, or a dictionary.


Return Value

A JSON object containing the persistent attributes. The caller owns the returned JSON object and must free it.

Notes

If __global_list_persistent_attrs_fn__ is not set, an empty JSON object is returned.

Prototype

// Not applicable in JS

Prototype

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