Go to the documentation of this file.
20 #ifndef SOPC_EVENT_HANDLER_H_
21 #define SOPC_EVENT_HANDLER_H_
139 #endif // SOPC_EVENT_HANDLER_H_
Struct describing the various parts of an event.
Definition: sopc_event_handler.h:49
uintptr_t params
Definition: sopc_event_handler.h:52
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_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.
SOPC_Looper * SOPC_Looper_Create(const char *threadName)
Creates a new looper and attaches it to a new thread.
void SOPC_SetListenerFunc(SOPC_EventHandler *handler)
Function prototype for connecting an event emitter to a listener.
Definition: sopc_event_handler.h:59
void SOPC_Looper_Delete(SOPC_Looper *looper)
Stops a looper and releases all resources allocated to it.
struct _SOPC_Looper SOPC_Looper
Manages the processing of events on a given thread.
Definition: sopc_event_handler.h:43
int32_t event
Definition: sopc_event_handler.h:50
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.
uintptr_t auxParam
Definition: sopc_event_handler.h:53
uint32_t eltId
Definition: sopc_event_handler.h:51
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
struct _SOPC_EventHandler SOPC_EventHandler
Processes messages from a queue.
Definition: sopc_event_handler.h:35
SOPC_ReturnStatus
Definition: libs2opc_client.h:64