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 |
|---|---|---|
|
|
The |
|
|
A JSON object containing filter conditions. System-defined keys such as |
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