The fact that we now have an active developer on branch ipv6 made me do this before I would like to. The idea here is to hide libupnp internal data structures from the outside world so that developers can be free to change them without breaking the interface. There is still some work to do before a formal release, but the samples (device and control point) should be working. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@353 119443c7-1b9e-41f8-b6fc-b9c35fce742c
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
|
|
|
|
#ifndef EVENTSUBSCRIBE_H
|
|
#define EVENTSUBSCRIBE_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
/** Returned along with a {\bf UPNP_EVENT_SUBSCRIBE_COMPLETE} or
|
|
* {\bf UPNP_EVENT_UNSUBSCRIBE_COMPLETE} callback. */
|
|
typedef struct {} EventSubscribe;
|
|
|
|
|
|
#include "String.h" // for UpnpString
|
|
|
|
|
|
/** Constructor */
|
|
EventSubscribe *UpnpEventSubscribe_new();
|
|
|
|
/** Destructor */
|
|
void UpnpEventSubscribe_delete(EventSubscribe *p);
|
|
|
|
/** Copy Constructor */
|
|
EventSubscribe *UpnpEventSubscribe_dup(const EventSubscribe *p);
|
|
|
|
/** Assignment operator */
|
|
void UpnpEventSubscribe_assign(EventSubscribe *q, const EventSubscribe *p);
|
|
|
|
/** The result of the operation. */
|
|
int UpnpEventSubscribe_get_ErrCode(const EventSubscribe *p);
|
|
void UpnpEventSubscribe_set_ErrCode(EventSubscribe *p, int n);
|
|
|
|
/** The actual subscription time (for subscriptions only). */
|
|
int UpnpEventSubscribe_get_TimeOut(const EventSubscribe *p);
|
|
void UpnpEventSubscribe_set_TimeOut(EventSubscribe *p, int n);
|
|
|
|
/** The SID for this subscription. For subscriptions, this only
|
|
* contains a valid SID if the {\bf Upnp_EventSubscribe.result} field
|
|
* contains a {\tt UPNP_E_SUCCESS} result code. For unsubscriptions,
|
|
* this contains the SID from which the subscription is being
|
|
* unsubscribed. */
|
|
const UpnpString *UpnpEventSubscribe_get_SID(const EventSubscribe *p);
|
|
void UpnpEventSubscribe_set_SID(EventSubscribe *p, const UpnpString *s);
|
|
void UpnpEventSubscribe_strcpy_SID(EventSubscribe *p, const char *s);
|
|
|
|
|
|
/** The event URL being subscribed to or removed from. */
|
|
const UpnpString *UpnpEventSubscribe_get_PublisherUrl(const EventSubscribe *p);
|
|
void UpnpEventSubscribe_set_PublisherUrl(EventSubscribe *p, const UpnpString *s);
|
|
void UpnpEventSubscribe_strcpy_PublisherUrl(EventSubscribe *p, const char *s);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
#endif /* EVENTSUBSCRIBE_H */
|
|
|