|
const char * | UpnpGetErrorMessage (int rc) |
| Converts an SDK error code into a string error message suitable for display. The memory returned from this function should NOT be freed. More...
|
|
void | UpnpSetMaxJobsTotal (int mjt) |
| Sets the maximum number of jobs in the internal thread pool. This option is intended for server applications to avoid an overflow of jobs when serving e.g. many web requests. More...
|
|
int | UpnpResolveURL (const char *BaseURL, const char *RelURL, char *AbsURL) |
| Combines a base URL and a relative URL into a single absolute URL. More...
|
|
int | UpnpResolveURL2 (const char *BaseURL, const char *RelURL, char **AbsURL) |
| Combines a base URL and a relative URL into a single absolute URL. More...
|
|
static int | addToAction (int response, IXML_Document **ActionDoc, const char *ActionName, const char *ServType, const char *ArgName, const char *ArgValue) |
| Adds the argument in the action request or response. More...
|
|
static IXML_Document * | makeAction (int response, const char *ActionName, const char *ServType, int NumArg, const char *Arg, va_list ArgList) |
| Creates the action request or response from the argument list. More...
|
|
IXML_Document * | UpnpMakeAction (const char *ActionName, const char *ServType, int NumArg, const char *Arg,...) |
| Creates an action request packet based on its input parameters (status variable name and value pair). More...
|
|
IXML_Document * | UpnpMakeActionResponse (const char *ActionName, const char *ServType, int NumArg, const char *Arg,...) |
| Ceates an action response packet based on its output parameters (status variable name and value pair). More...
|
|
int | UpnpAddToAction (IXML_Document **ActionDoc, const char *ActionName, const char *ServType, const char *ArgName, const char *ArgValue) |
| Adds the argument in the action request. More...
|
|
int | UpnpAddToActionResponse (IXML_Document **ActionResponse, const char *ActionName, const char *ServType, const char *ArgName, const char *ArgValue) |
| Creates an action response packet based on its output parameters (status variable name and value pair). More...
|
|
IXML_Document * | UpnpCreatePropertySet (int NumArg, const char *Arg,...) |
| Creates a property set message packet. More...
|
|
int | UpnpAddToPropertySet (IXML_Document **PropSet, const char *ArgName, const char *ArgValue) |
| Can be used when an application needs to transfer the status of many variables at once. More...
|
|
static int addToAction |
( |
int |
response, |
|
|
IXML_Document ** |
ActionDoc, |
|
|
const char * |
ActionName, |
|
|
const char * |
ServType, |
|
|
const char * |
ArgName, |
|
|
const char * |
ArgValue |
|
) |
| |
|
static |
Adds the argument in the action request or response.
This function creates the action request or response if it is a first argument, otherwise it will add the argument in the document.
- Returns
- UPNP_E_SUCCESS if successful, otherwise the appropriate error.
- Parameters
-
[in] | response | flag to tell if the ActionDoc is for response or request. |
[in,out] | ActionDoc | Request or response document. |
[in] | ActionName | Name of the action request or response. |
[in] | ServType | Service type. |
[in] | ArgName | Name of the argument. |
[in] | ArgValue | Value of the argument. |
References HEADER_LENGTH, ixmlParseBufferEx(), ErrorString::rc, UPNP_E_INVALID_PARAM, and UPNP_E_OUTOF_MEMORY.
Referenced by UpnpAddToAction(), and UpnpAddToActionResponse().