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 |
---|---|---|
|
|
The |
|
|
A flag specifying which attributes to include in the result. |
|
|
The source |
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