gclass_find_public_event()
#
Finds a public event by name in any registered gclass
. Returns a pointer to the event if found, otherwise returns NULL
.
Prototype
gobj_event_t gclass_find_public_event(
const char *event,
BOOL verbose
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the event to search for. |
|
|
If |
Return Value
A pointer to the event if found, otherwise NULL
.
Notes
This function iterates over all registered gclass
instances to locate a public event. If verbose
is TRUE
, an error message is logged when the event is not found.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples