Definition of event type codes. More...
Go to the source code of this file.
Typedefs | |
typedef enum Upnp_EventType_e | Upnp_EventType |
Old C stile quirks to make a symbol protected. Look at Upnp_EventType_e. | |
typedef int(* | Upnp_FunPtr) (Upnp_EventType EventType, const void *Event, void *Cookie) |
Definition of event type codes.
Definition in file Callback.hpp.
typedef enum Upnp_EventType_e Upnp_EventType |
Old C stile quirks to make a symbol protected. Look at Upnp_EventType_e.
Will be fixed to clean C++.
Definition at line 120 of file Callback.hpp.
typedef int(* Upnp_FunPtr) ( Upnp_EventType EventType, const void *Event, void *Cookie) |
All callback functions share the same prototype, documented below. Note that any memory passed to the callback function is valid only during the callback and should be copied if it needs to persist. This callback function needs to be thread safe. The context of the callback is always on a valid thread context and standard synchronization methods can be used. Note, however, because of this the callback cannot call SDK functions unless explicitly noted.
where EventType is the event that triggered the callback, Event is a structure that denotes event-specific information for that event, and Cookie is the user data passed when the callback was registered.
See Upnp_EventType for more information on the callback values and the associated Event parameter.
The return value of the callback is currently ignored. It may be used in the future to communicate results back to the SDK.
[in] | EventType | |
[in] | Event | |
[in] | Cookie |
Definition at line 143 of file Callback.hpp.
enum Upnp_EventType_e |
The reason code for an event callback.
The Event parameter will be different depending on the reason for the callback. The descriptions for each event type describe the contents of the Event parameter.
Definition at line 19 of file Callback.hpp.