Callback.h
Go to the documentation of this file.
#ifndef CALLBACK_H
#define CALLBACK_H
enum Upnp_EventType_e {
/*
* Control callbacks
*/
UPNP_CONTROL_ACTION_REQUEST,
UPNP_CONTROL_ACTION_COMPLETE,
UPNP_CONTROL_GET_VAR_REQUEST,
UPNP_CONTROL_GET_VAR_COMPLETE,
/*
* Discovery callbacks
*/
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE,
UPNP_DISCOVERY_ADVERTISEMENT_BYEBYE,
UPNP_DISCOVERY_SEARCH_RESULT,
UPNP_DISCOVERY_SEARCH_TIMEOUT,
/*
* Eventing callbacks
*/
UPNP_EVENT_SUBSCRIPTION_REQUEST,
UPNP_EVENT_RECEIVED,
UPNP_EVENT_RENEWAL_COMPLETE,
UPNP_EVENT_SUBSCRIBE_COMPLETE,
UPNP_EVENT_UNSUBSCRIBE_COMPLETE,
UPNP_EVENT_AUTORENEWAL_FAILED,
UPNP_EVENT_SUBSCRIPTION_EXPIRED
};
typedef enum Upnp_EventType_e Upnp_EventType;
typedef int (*Upnp_FunPtr)(
Upnp_EventType EventType,
const void *Event,
void *Cookie);
#endif /* CALLBACK_H */
Upnp_FunPtr
int(* Upnp_FunPtr)(Upnp_EventType EventType, const void *Event, void *Cookie)
Definition: Callback.h:145
UPNP_EVENT_RECEIVED
Definition: Callback.h:88
UPNP_EVENT_UNSUBSCRIBE_COMPLETE
Definition: Callback.h:103
Upnp_EventType_e
Upnp_EventType_e
The reason code for an event callback.
Definition: Callback.h:16
UPNP_CONTROL_ACTION_COMPLETE
Definition: Callback.h:30
UPNP_DISCOVERY_ADVERTISEMENT_ALIVE
Definition: Callback.h:51
UPNP_EVENT_SUBSCRIPTION_EXPIRED
Definition: Callback.h:115
UPNP_EVENT_SUBSCRIPTION_REQUEST
Definition: Callback.h:83
UPNP_EVENT_AUTORENEWAL_FAILED
Definition: Callback.h:109
UPNP_DISCOVERY_SEARCH_RESULT
Definition: Callback.h:63
UPNP_EVENT_SUBSCRIBE_COMPLETE
Definition: Callback.h:98
UPNP_DISCOVERY_ADVERTISEMENT_BYEBYE
Definition: Callback.h:57
UPNP_DISCOVERY_SEARCH_TIMEOUT
Definition: Callback.h:68
UPNP_CONTROL_GET_VAR_COMPLETE
Definition: Callback.h:41
UPNP_CONTROL_GET_VAR_REQUEST
Definition: Callback.h:36
UPNP_EVENT_RENEWAL_COMPLETE
Definition: Callback.h:93
UPNP_CONTROL_ACTION_REQUEST
Definition: Callback.h:25