mUPnP for C
control_function.c File Reference
#include <mupnp/control/control.h>
#include <mupnp/device.h>
#include <mupnp/util/log.h>
#include <mupnp/util/string.h>

Functions

const char * mupnp_usn_getudn (const char *usn, char *udnBuf, size_t udnBufLen)
 
void mupnp_control_soap_response_initializeenvelopenode (mUpnpSoapResponse *soapRes)
 
void mupnp_control_soap_request_initializeenvelopenode (mUpnpSoapRequest *soapReq)
 
mUpnpXmlNodemupnp_control_soap_response_createfaultresponsenode (int errCode, char *errDescr)
 
void mupnp_control_soap_response_setfaultresponse (mUpnpSoapResponse *soapRes, int errCode, char *errDescr)
 
void mupnp_control_request_sethostfromservice (mUpnpSoapRequest *soapReq, mUpnpService *service)
 

Function Documentation

◆ mupnp_control_request_sethostfromservice()

void mupnp_control_request_sethostfromservice ( mUpnpSoapRequest * soapReq,
mUpnpService * service )

Set host from service

Parameters
soapReqSoap request
serviceUPnP service

◆ mupnp_control_soap_request_initializeenvelopenode()

void mupnp_control_soap_request_initializeenvelopenode ( mUpnpSoapRequest * soapReq)

Initializes soap requests envelope node

Parameters
soapReqSoap request

◆ mupnp_control_soap_response_createfaultresponsenode()

mUpnpXmlNode * mupnp_control_soap_response_createfaultresponsenode ( int errCode,
char * errDescr )

◆ mupnp_control_soap_response_initializeenvelopenode()

void mupnp_control_soap_response_initializeenvelopenode ( mUpnpSoapResponse * soapRes)

Initialize soap responses envelope node

Parameters
soapResSoap response

◆ mupnp_control_soap_response_setfaultresponse()

void mupnp_control_soap_response_setfaultresponse ( mUpnpSoapResponse * soapRes,
int errCode,
char * errDescr )

Set failed response data

Parameters
soapResSoap response
errCodeError code
errDescrError description

◆ mupnp_usn_getudn()

const char * mupnp_usn_getudn ( const char * usn,
char * udnBuf,
size_t udnBufLen )

Get udn from usn

Parameters
usnUniversal serial number
udnBufBuffer where udn is stored after successfull execution
udnBufLenBuffer length for udnBuf
Returns
Pointer to beginning of udnBuf.