20#ifndef SOPC_EVENT_HANDLER_H_
21#define SOPC_EVENT_HANDLER_H_
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
void SOPC_Looper_Delete(SOPC_Looper *looper)
Stops a looper and releases all resources allocated to it.
void SOPC_EventHandler_Callback(SOPC_EventHandler *handler, int32_t event, uint32_t eltId, uintptr_t params, uintptr_t auxParam)
Function prototype for message processing callbacks.
Definition sopc_event_handler.h:67
SOPC_Looper * SOPC_Looper_Create(const char *threadName)
Creates a new looper and attaches it to a new thread.
SOPC_EventHandler * SOPC_EventHandler_Create(SOPC_Looper *looper, SOPC_EventHandler_Callback *callback)
Creates a new event handler and attaches it to an existing looper.
SOPC_ReturnStatus SOPC_EventHandler_Post(SOPC_EventHandler *handler, int32_t event, uint32_t eltId, uintptr_t params, uintptr_t auxParam)
Posts an event to the back of the event handler's message queue.
SOPC_ReturnStatus SOPC_EventHandler_PostAsNext(SOPC_EventHandler *handler, int32_t event, uint32_t eltId, uintptr_t params, uintptr_t auxParam)
Posts an event to the front of the event handler's message queue.
struct _SOPC_EventHandler SOPC_EventHandler
Processes messages from a queue.
Definition sopc_event_handler.h:35
void SOPC_SetListenerFunc(SOPC_EventHandler *handler)
Function prototype for connecting an event emitter to a listener.
Definition sopc_event_handler.h:59
struct _SOPC_Looper SOPC_Looper
Manages the processing of events on a given thread.
Definition sopc_event_handler.h:43
Struct describing the various parts of an event.
Definition sopc_event_handler.h:49
int32_t event
Definition sopc_event_handler.h:50
uintptr_t params
Definition sopc_event_handler.h:52
uintptr_t auxParam
Definition sopc_event_handler.h:53
uint32_t eltId
Definition sopc_event_handler.h:51