2008-04-26 01:20:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef ACTIONREQUEST_H
|
|
|
|
#define ACTIONREQUEST_H
|
|
|
|
|
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief UpnpActionRequest object declaration.
|
|
|
|
*
|
|
|
|
* \author Marcelo Roberto Jimenez
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-06-14 21:32:02 +00:00
|
|
|
/*! Returned as part of a \b UPNP_CONTROL_ACTION_COMPLETE callback. */
|
|
|
|
typedef struct s_UpnpActionRequest UpnpActionRequest;
|
|
|
|
|
|
|
|
|
2008-06-06 21:32:51 +00:00
|
|
|
#include "ixml.h" /* for IXML_Document */
|
|
|
|
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
|
|
|
|
#include "UpnpInet.h" /* for sockaddr, sockaddr_storage */
|
|
|
|
#include "UpnpString.h"
|
|
|
|
|
|
|
|
|
2008-04-26 01:20:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! Constructor */
|
|
|
|
EXPORT_SPEC UpnpActionRequest *UpnpActionRequest_new();
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! Destructor */
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_delete(UpnpActionRequest *p);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! Copy Constructor */
|
|
|
|
EXPORT_SPEC UpnpActionRequest *UpnpActionRequest_dup(const UpnpActionRequest *p);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! Assignment operator */
|
2008-06-14 21:32:02 +00:00
|
|
|
EXPORT_SPEC void UpnpActionRequest_assign(UpnpActionRequest *p, const UpnpActionRequest *q);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The result of the operation */
|
|
|
|
EXPORT_SPEC int UpnpActionRequest_get_ErrCode(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ErrCode(UpnpActionRequest *p, int n);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The socket number of the connection to the requestor */
|
|
|
|
EXPORT_SPEC int UpnpActionRequest_get_Socket(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_Socket(UpnpActionRequest *p, int n);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The error string in case of error */
|
|
|
|
EXPORT_SPEC const UpnpString *UpnpActionRequest_get_ErrStr(const UpnpActionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpActionRequest_get_ErrStr_cstr(const UpnpActionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ErrStr(UpnpActionRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_strcpy_ErrStr(UpnpActionRequest *p, const char *s);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The Action Name */
|
|
|
|
EXPORT_SPEC const UpnpString *UpnpActionRequest_get_ActionName(const UpnpActionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpActionRequest_get_ActionName_cstr(const UpnpActionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ActionName(UpnpActionRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_strcpy_ActionName(UpnpActionRequest *p, const char *s);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The unique device ID */
|
|
|
|
EXPORT_SPEC const UpnpString *UpnpActionRequest_get_DevUDN(const UpnpActionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpActionRequest_get_DevUDN_cstr(const UpnpActionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_DevUDN(UpnpActionRequest *p, const UpnpString *s);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The service ID */
|
|
|
|
EXPORT_SPEC const UpnpString *UpnpActionRequest_get_ServiceID(const UpnpActionRequest *p);
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const char *UpnpActionRequest_get_ServiceID_cstr(const UpnpActionRequest *p);
|
2008-06-05 22:41:50 +00:00
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ServiceID(UpnpActionRequest *p, const UpnpString *s);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The DOM document describing the action */
|
|
|
|
EXPORT_SPEC IXML_Document *UpnpActionRequest_get_ActionRequest(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ActionRequest(UpnpActionRequest *p, IXML_Document *d);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The DOM document describing the result of the action */
|
|
|
|
EXPORT_SPEC IXML_Document *UpnpActionRequest_get_ActionResult(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_ActionResult(UpnpActionRequest *p, IXML_Document *d);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! The DOM document containing the information from the SOAP header */
|
|
|
|
EXPORT_SPEC IXML_Document *UpnpActionRequest_get_SoapHeader(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_SoapHeader(UpnpActionRequest *p, IXML_Document *d);
|
2008-04-26 01:20:09 +00:00
|
|
|
|
2008-06-05 22:41:50 +00:00
|
|
|
/*! IP address of the control point requesting this action */
|
2010-03-15 01:48:24 +00:00
|
|
|
EXPORT_SPEC const struct sockaddr *UpnpActionRequest_get_CtrlPtIPAddr(const UpnpActionRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpActionRequest_set_CtrlPtIPAddr(UpnpActionRequest *p, const struct sockaddr *sa);
|
2008-05-23 22:15:52 +00:00
|
|
|
|
2008-04-26 01:20:09 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* ACTIONREQUEST_H */
|
|
|
|
|