2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef EVENT_H
|
|
|
|
#define EVENT_H
|
|
|
|
|
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief UpnpEvent object declararion.
|
|
|
|
*
|
|
|
|
* \author Marcelo Roberto Jimenez
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-06-06 21:32:51 +00:00
|
|
|
#include "ixml.h" /* for IXML_Document */
|
|
|
|
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
|
|
|
|
#include "UpnpString.h"
|
|
|
|
|
|
|
|
|
2008-05-03 15:35:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
2008-05-04 19:56:15 +00:00
|
|
|
/** Returned along with a \b UPNP_EVENT_RECEIVED callback. */
|
2008-05-22 17:24:56 +00:00
|
|
|
typedef struct s_UpnpEvent UpnpEvent;
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** Constructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC UpnpEvent *UpnpEvent_new();
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** Destructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpEvent_delete(UpnpEvent *p);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** Copy Constructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC UpnpEvent *UpnpEvent_dup(const UpnpEvent *p);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** Assignment operator */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpEvent_assign(UpnpEvent *q, const UpnpEvent *p);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** The event sequence number. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC int UpnpEvent_get_EventKey(const UpnpEvent *p);
|
|
|
|
EXPORT_SPEC void UpnpEvent_set_EventKey(UpnpEvent *p, int n);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** The DOM tree representing the changes generating the event. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC IXML_Document *UpnpEvent_get_ChangedVariables(const UpnpEvent *p);
|
|
|
|
EXPORT_SPEC void UpnpEvent_set_ChangedVariables(UpnpEvent *p, IXML_Document *d);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
/** The subscription ID for this subscription. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC UpnpString *UpnpEvent_get_SID(const UpnpEvent *p);
|
|
|
|
EXPORT_SPEC void UpnpEvent_set_SID(UpnpEvent *p, const UpnpString *s);
|
2008-05-03 15:35:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* EVENT_H */
|
|
|
|
|