gobj_read_attrs()

gobj_read_attrs()#

Retrieves a JSON object containing attributes of the given hgobj that match the specified flag criteria.

Prototype

json_t *gobj_read_attrs(
    hgobj gobj,
    sdata_flag_t include_flag,
    hgobj src
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance whose attributes are to be read.

include_flag

sdata_flag_t

A flag specifying which attributes to include in the result.

src

hgobj

The source hgobj requesting the attributes.


Return Value

A new JSON object containing the selected attributes. The caller is responsible for freeing the returned object.

Notes

This function filters attributes based on the provided include_flag. If include_flag is set to -1, all attributes are included.

Prototype

// Not applicable in JS

Prototype

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