gclass_find_public_event()

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

event

const char *

The name of the event to search for.

verbose

BOOL

If TRUE, logs an error message when the event is not found.


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