28 #ifndef _DPS_DISPATCHER_H 29 #define _DPS_DISPATCHER_H
int DPS_Status
The status code type.
Definition: err.h:41
DPS_Dispatcher * DPS_CreateDispatcher(DPS_Node *node, DPS_DispatchFunc func)
Create a dispatcher and register the function to be called.
DPS_Status DPS_ScheduleCall(DPS_Node *node, DPS_DelayedFunc func, void *data, int delay)
Wrapper function that creates a dispatcher and schedules a function to be called after a delay...
struct _DPS_Dispatcher DPS_Dispatcher
Opaque type for an dispatcher.
Definition: dispatcher.h:47
DPS_Status DPS_Dispatch(DPS_Dispatcher *dispatcher, void *data, int delay)
Call the function registered when the dispatcher was created.
void DPS_DestroyDispatcher(DPS_Dispatcher *dispatcher)
Destroy a dispatcher and free resources.
void(* DPS_DispatchFunc)(DPS_Node *node, DPS_Dispatcher *dispatcher, void *data)
Prototype for function to be called by a dispatcher.
Definition: dispatcher.h:57
void(* DPS_DelayedFunc)(DPS_Node *node, void *data)
Prototype for a delayed dispatched function call.
Definition: dispatcher.h:97
struct _DPS_Node DPS_Node
Opaque type for a node.
Definition: dps.h:450