2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef STATEVARREQUEST_H
|
|
|
|
#define STATEVARREQUEST_H
|
|
|
|
|
|
|
|
|
2008-06-06 00:41:50 +02:00
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief UpnpStateVarRequest object declararion.
|
|
|
|
*
|
|
|
|
* \author Marcelo Roberto Jimenez
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-06-06 23:32:51 +02:00
|
|
|
#include "ixml.h" /* for DOMString */
|
|
|
|
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
|
|
|
|
#include "UpnpInet.h" /* for sockaddr, sockaddr_storage */
|
|
|
|
#include "UpnpString.h"
|
|
|
|
|
|
|
|
|
2008-04-26 03:20:09 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
/** Represents the request for current value of a state variable in a service
|
|
|
|
* state table. */
|
2008-05-22 19:24:56 +02:00
|
|
|
typedef struct s_UpnpStateVarRequest UpnpStateVarRequest;
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
/** Constructor */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC UpnpStateVarRequest *UpnpStateVarRequest_new();
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** Destructor */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_delete(UpnpStateVarRequest *p);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** Copy Constructor */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC UpnpStateVarRequest *UpnpStateVarRequest_dup(const UpnpStateVarRequest *p);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** Assignment operator */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_assign(UpnpStateVarRequest *q, const UpnpStateVarRequest *p);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The result of the operation */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC int UpnpStateVarRequest_get_ErrCode(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_ErrCode(UpnpStateVarRequest *p, int n);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The socket number of the connection to the requestor */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC int UpnpStateVarRequest_get_Socket(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_Socket(UpnpStateVarRequest *p, int n);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The error string in case of error */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpStateVarRequest_get_ErrStr(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_ErrStr(UpnpStateVarRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_strcpy_ErrStr(UpnpStateVarRequest *p, const char *s);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The unique device ID */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpStateVarRequest_get_DevUDN(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_DevUDN(UpnpStateVarRequest *p, const UpnpString *s);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The service ID */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpStateVarRequest_get_ServiceID(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_ServiceID(UpnpStateVarRequest *p, const UpnpString *s);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The name of the variable. */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC const UpnpString *UpnpStateVarRequest_get_StateVarName(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_StateVarName(UpnpStateVarRequest *p, const UpnpString *s);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_strcpy_StateVarName(UpnpStateVarRequest *p, const char *s);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** IP address of sender requesting the state variable. */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC struct sockaddr *UpnpStateVarRequest_get_CtrlPtIPAddr(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_CtrlPtIPAddr(UpnpStateVarRequest *p, struct sockaddr *sa);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
/** The current value of the variable. This needs to be allocated by
|
|
|
|
* the caller. When finished with it, the SDK frees this {\bf DOMString}. */
|
2008-06-06 00:41:50 +02:00
|
|
|
EXPORT_SPEC const DOMString UpnpStateVarRequest_get_CurrentVal(const UpnpStateVarRequest *p);
|
|
|
|
EXPORT_SPEC void UpnpStateVarRequest_set_CurrentVal(UpnpStateVarRequest *p, const DOMString s);
|
2008-04-26 03:20:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* STATEVARREQUEST_H */
|
|
|
|
|