|
Distributed Publish Subscribe for IoT
|
Go to the source code of this file.
Typedefs | |
| typedef struct _DPS_Event | DPS_Event |
| Opaque type for an event. More... | |
Functions | |
| DPS_Event * | DPS_CreateEvent () |
| Create and initialize an event. More... | |
| void | DPS_DestroyEvent (DPS_Event *event) |
| Destroy an event and free resources. More... | |
| void | DPS_SetEventData (DPS_Event *event, void *data) |
| Set the event application data pointer. More... | |
| void * | DPS_GetEventData (const DPS_Event *event) |
| Get the event application data pointer. More... | |
| void | DPS_SignalEvent (DPS_Event *event, DPS_Status status) |
| Signal an event. More... | |
| DPS_Status | DPS_WaitForEvent (DPS_Event *event) |
| Wait for an event to be signalled. More... | |
| DPS_Status | DPS_TimedWaitForEvent (DPS_Event *event, uint16_t timeout) |
| Wait for an event to be signalled with a timeout. More... | |
| typedef struct _DPS_Event DPS_Event |
Opaque type for an event.
| DPS_Event* DPS_CreateEvent | ( | ) |
Create and initialize an event.
| void DPS_DestroyEvent | ( | DPS_Event * | event | ) |
Destroy an event and free resources.
| event | The event to destroy |
| void* DPS_GetEventData | ( | const DPS_Event * | event | ) |
Get the event application data pointer.
| event | The event to get the application data pointer from |
| void DPS_SetEventData | ( | DPS_Event * | event, |
| void * | data | ||
| ) |
Set the event application data pointer.
| event | The event to set an application data pointer on |
| data | The data pointer to set |
| void DPS_SignalEvent | ( | DPS_Event * | event, |
| DPS_Status | status | ||
| ) |
Signal an event.
| event | Event to signal |
| status | A status code to pass to the event waiter |
| DPS_Status DPS_TimedWaitForEvent | ( | DPS_Event * | event, |
| uint16_t | timeout | ||
| ) |
Wait for an event to be signalled with a timeout.
| event | Event to wait for |
| timeout | Timeout in milliseconds |
| DPS_Status DPS_WaitForEvent | ( | DPS_Event * | event | ) |
Wait for an event to be signalled.
| event | Event to wait for |