Template object for SubscriptionRequest.
This commit is contained in:
		| @@ -9,57 +9,19 @@ | ||||
|  * | ||||
|  * \brief UpnpSubscriptionRequest object declararion. | ||||
|  * | ||||
|  * Returned along with a \b UPNP_EVENT_SUBSCRIPTION_REQUEST callback. | ||||
|  * | ||||
|  * \author Marcelo Roberto Jimenez | ||||
|  */ | ||||
|  | ||||
| #define CLASS UpnpSubscriptionRequest | ||||
|  | ||||
| /*! Returned along with a \b UPNP_EVENT_SUBSCRIPTION_REQUEST callback. */ | ||||
| typedef struct s_UpnpSubscriptionRequest UpnpSubscriptionRequest; | ||||
| #define EXPAND_CLASS_MEMBERS(CLASS) \ | ||||
| 	EXPAND_CLASS_MEMBER_STRING(CLASS, ServiceId) \ | ||||
| 	EXPAND_CLASS_MEMBER_STRING(CLASS, UDN) \ | ||||
| 	EXPAND_CLASS_MEMBER_STRING(CLASS, SID) \ | ||||
|  | ||||
|  | ||||
| #include "UpnpGlobal.h" /* for EXPORT_SPEC */ | ||||
| #include "UpnpString.h" | ||||
|  | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif /* __cplusplus */ | ||||
|  | ||||
|  | ||||
| /*! Constructor */ | ||||
| EXPORT_SPEC UpnpSubscriptionRequest *UpnpSubscriptionRequest_new(); | ||||
|  | ||||
| /*! Destructor */ | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_delete(UpnpSubscriptionRequest *p); | ||||
|  | ||||
| /*! Copy Constructor */ | ||||
| EXPORT_SPEC UpnpSubscriptionRequest *UpnpSubscriptionRequest_dup(const UpnpSubscriptionRequest *p); | ||||
|  | ||||
| /*! Assignment operator */ | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_assign(UpnpSubscriptionRequest *p, const UpnpSubscriptionRequest *q); | ||||
|  | ||||
| /*! The identifier for the service being subscribed to. */ | ||||
| EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_ServiceId(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC const char *UpnpSubscriptionRequest_get_ServiceId_cstr(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_set_ServiceId(UpnpSubscriptionRequest *p, const UpnpString *s); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_ServiceId(UpnpSubscriptionRequest *p, const char *s); | ||||
|  | ||||
| /*! Universal device name. */ | ||||
| EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_UDN(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC const char *UpnpSubscriptionRequest_get_UDN_cstr(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_set_UDN(UpnpSubscriptionRequest *p, const UpnpString *s); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_UDN(UpnpSubscriptionRequest *p, const char *s); | ||||
|  | ||||
| /*! The assigned subscription ID for this subscription. */ | ||||
| EXPORT_SPEC const UpnpString *UpnpSubscriptionRequest_get_SID(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC const char *UpnpSubscriptionRequest_get_SID_cstr(const UpnpSubscriptionRequest *p); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_set_SID(UpnpSubscriptionRequest *p, const UpnpString *s); | ||||
| EXPORT_SPEC void UpnpSubscriptionRequest_strcpy_SID(UpnpSubscriptionRequest *p, const char *s); | ||||
|  | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
| #endif /* __cplusplus */ | ||||
| #include "TemplateInclude.h" | ||||
|  | ||||
|  | ||||
| #endif /* SUBSCRIPTIONREQUEST_H */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marcelo Roberto Jimenez
					Marcelo Roberto Jimenez