|
Distributed Publish & Subscribe for IoT
|
Register functions to be called after a timeout period expires. More...
Go to the source code of this file.
Typedefs | |
| typedef void(* | DPS_DelayedFunc) (DPS_Node *node, void *data) |
| Prototype for a delayed dispatched function call. More... | |
| typedef struct _DPS_Dispatcher | DPS_Dispatcher |
| Opaque type for an dispatcher. | |
| typedef void(* | DPS_DispatchFunc) (DPS_Node *node, DPS_Dispatcher *dispatcher, void *data) |
| Prototype for function to be called by a dispatcher. More... | |
Functions | |
| DPS_Dispatcher * | DPS_CreateDispatcher (DPS_Node *node, DPS_DispatchFunc func) |
| Create a dispatcher and register the function to be called. More... | |
| void | DPS_DestroyDispatcher (DPS_Dispatcher *dispatcher) |
| Destroy a dispatcher and free resources. More... | |
| DPS_Status | DPS_Dispatch (DPS_Dispatcher *dispatcher, void *data, int delay) |
| Call the function registered when the dispatcher was created. More... | |
| 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. More... | |
Register functions to be called after a timeout period expires.