gobj_match_gobj()

gobj_match_gobj()#

Checks if a given hgobj matches the specified filter criteria in jn_filter. The function evaluates attributes and system-defined keys to determine if the object meets the conditions.

Prototype

BOOL gobj_match_gobj(
    hgobj gobj,
    json_t *jn_filter // owned
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance to be checked against the filter.

jn_filter

json_t *

A JSON object containing filter conditions. System-defined keys such as __gclass_name__, __gobj_name__, and __state__ can be used for filtering.


Return Value

Returns TRUE if the hgobj matches the filter criteria, otherwise returns FALSE.

Notes

The function supports filtering based on system-defined keys like __gclass_name__, __gobj_name__, __state__, and __disabled__. It also compares attribute values using simple JSON comparison.

Prototype

// Not applicable in JS

Prototype

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