gobj_list_nodes()
#
Retrieves a list of nodes from a specified topic in the given hgobj
. The function allows filtering and additional options to refine the query.
Prototype
json_t *gobj_list_nodes(
hgobj gobj,
const char *topic_name,
json_t *jn_filter,
json_t *jn_options,
hgobj src
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The |
|
|
The name of the topic from which nodes will be listed. |
|
|
A JSON object containing filter criteria to apply to the node list. Owned by the caller. |
|
|
A JSON object specifying additional options such as ‘include-instances’ and fkey/hook options. Owned by the caller. |
|
|
The source |
Return Value
Returns a JSON object containing the list of nodes that match the specified criteria. The caller must free the returned JSON object.
Notes
If gobj
is NULL
or destroyed, an error is logged and NULL
is returned. If the mt_list_nodes
method is not defined in the gclass, an error is logged and NULL
is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples