libUPnP
1.8.4
upnp
src
inc
soaplib.h
Go to the documentation of this file.
1
/**************************************************************************
2
*
3
* Copyright (c) 2000-2003 Intel Corporation
4
* All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
*
9
* - Redistributions of source code must retain the above copyright notice,
10
* this list of conditions and the following disclaimer.
11
* - Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions and the following disclaimer in the documentation
13
* and/or other materials provided with the distribution.
14
* - Neither name of Intel Corporation nor the names of its contributors
15
* may be used to endorse or promote products derived from this software
16
* without specific prior written permission.
17
*
18
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR
22
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
*
30
**************************************************************************/
31
32
#ifndef SOAPLIB_H
33
#define SOAPLIB_H
34
39
/* SOAP module API to be called in Upnp-Dk API */
40
41
47
void
soap_device_callback
(
49
http_parser_t
*parser,
51
http_message_t
*request,
53
SOCKINFO
*info);
54
55
56
/****************************************************************************
57
* Function: SoapSendAction
58
*
59
* Parameters:
60
* IN char* action_url: device contrl URL
61
* IN char *service_type: device service type
62
* IN IXML_Document *action_node: SOAP action node
63
* OUT IXML_Document **response_node: SOAP response node
64
*
65
* Description: This function is called by UPnP API to send the SOAP
66
* action request and waits till it gets the response from the device
67
* pass the response to the API layer
68
*
69
* Return: int
70
* returns UPNP_E_SUCCESS if successful else returns appropriate error
71
* Note:
72
****************************************************************************/
73
int
SoapSendAction(
74
IN
char
* action_url,
75
IN
char
*service_type,
76
IN
IXML_Document
*action_node,
77
OUT
IXML_Document
**response_node);
78
79
/****************************************************************************
80
* Function: SoapSendActionEx
81
*
82
* Parameters:
83
* IN char* action_url: device contrl URL
84
* IN char *service_type: device service type
85
* IN IXML_Document *Header: Soap header
86
* IN IXML_Document *action_node: SOAP action node (SOAP body)
87
* OUT IXML_Document **response_node: SOAP response node
88
*
89
* Description: This function is called by UPnP API to send the SOAP
90
* action request and waits till it gets the response from the device
91
* pass the response to the API layer. This action is similar to the
92
* the SoapSendAction with only difference that it allows users to
93
* pass the SOAP header along the SOAP body ( soap action request)
94
*
95
* Return: int
96
* returns UPNP_E_SUCCESS if successful else returns appropriate error
97
* Note:
98
****************************************************************************/
99
int
SoapSendActionEx(
100
IN
char
* ActionURL,
101
IN
char
*ServiceType,
102
IN
IXML_Document
*Header,
103
IN
IXML_Document
*ActNode,
104
OUT
IXML_Document
**RespNode);
105
106
/****************************************************************************
107
* Function: SoapGetServiceVarStatus
108
*
109
* Parameters:
110
* IN char * action_url: Address to send this variable query message.
111
* IN char *var_name: Name of the variable.
112
* OUT char **var_value: Output value.
113
*
114
* Description: This function creates a status variable query message
115
* send it to the specified URL. It also collect the response.
116
*
117
* Return: int
118
*
119
* Note:
120
****************************************************************************/
121
int
SoapGetServiceVarStatus(
122
IN
char
* ActionURL,
123
IN
DOMString
VarName,
124
OUT
DOMString
*StVar);
125
126
extern
const
char
* ContentTypeHeader;
127
128
#endif
/* SOAPLIB_H */
129
DOMString
#define DOMString
The type of DOM strings.
Definition
ixml.h:59
soap_device_callback
void soap_device_callback(http_parser_t *parser, http_message_t *request, SOCKINFO *info)
This is a callback called by minisever after receiving the request from the control point....
Definition
soap_device.c:701
SOCKINFO
Definition
sock.h:60
_IXML_Document
Data structure representing the DOM Document.
Definition
ixml.h:198
http_message_t
Definition
httpparser.h:179
http_parser_t
Definition
httpparser.h:213
Generated by
1.9.7