2008-05-03 21:19:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef SUBSCRIPTIONREQUEST_H
|
|
|
|
#define SUBSCRIPTIONREQUEST_H
|
|
|
|
|
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief UpnpSubscriptionRequest object declararion.
|
|
|
|
*
|
|
|
|
* \author Marcelo Roberto Jimenez
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Returned along with a \b UPNP_EVENT_SUBSCRIPTION_REQUEST callback. */
|
|
|
|
typedef struct s_UpnpSubscriptionRequest UpnpSubscriptionRequest;
|
|
|
|
|
|
|
|
|
2008-06-06 21:32:51 +00:00
|
|
|
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
|
|
|
|
#include "UpnpString.h"
|
|
|
|
|
|
|
|
|
2008-05-03 21:19:08 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Constructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC UpnpSubscriptionRequest *UpnpSubscriptionRequest_new();
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Destructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_delete(UpnpSubscriptionRequest *p);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Copy Constructor */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC UpnpSubscriptionRequest *UpnpSubscriptionRequest_dup(const UpnpSubscriptionRequest *p);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Assignment operator */
|
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_assign(UpnpSubscriptionRequest *p, const UpnpSubscriptionRequest *q);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! The identifier for the service being subscribed to. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_ServiceId(const UpnpSubscriptionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpSubscriptionRequest_get_ServiceId_cstr(const UpnpSubscriptionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_set_ServiceId(UpnpSubscriptionRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_ServiceId(UpnpSubscriptionRequest *p, const char *s);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Universal device name. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_UDN(const UpnpSubscriptionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpSubscriptionRequest_get_UDN_cstr(const UpnpSubscriptionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_set_UDN(UpnpSubscriptionRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_UDN(UpnpSubscriptionRequest *p, const char *s);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! The assigned subscription ID for this subscription. */
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_SID(const UpnpSubscriptionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpSubscriptionRequest_get_SID_cstr(const UpnpSubscriptionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_set_SID(UpnpSubscriptionRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_SID(UpnpSubscriptionRequest *p, const char *s);
|
2008-05-03 21:19:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SUBSCRIPTIONREQUEST_H */
|
|
|
|
|