event_init

Initializes an existing event.

Syntax

void event_init(Event* event);
Name Type Description
event Event* A pointer to the event.

Example

Strongly Typed:

EVENT_DEFINE_1_H(StringEvent, str_event, char*)
EVENT_DEFINE_C(StringEvent, str_event)

StringEvent event;
str_event_init(&event);

// Use the event...

str_event_free_resources(event);

Generically Typed:

GdsEvent event;
gds_event_init(&event);

// Use the event...

gds_event_free_resources(event);