00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00040
00041 #ifndef UPNP_TOOLS_H
00042 #define UPNP_TOOLS_H
00043
00044 #include "upnp.h"
00045
00046
00047 #if UPNP_HAVE_TOOLS
00048
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052
00069 EXPORT_SPEC int UpnpResolveURL(
00070 IN const char * BaseURL,
00071 IN const char * RelURL,
00072 OUT char * AbsURL
00074 );
00075
00085 EXPORT_SPEC IXML_Document* UpnpMakeAction(
00086 IN const char * ActionName,
00087 IN const char * ServType,
00088 IN int NumArg,
00089 IN const char * Arg,
00090 IN ...
00091 );
00092
00110 EXPORT_SPEC int UpnpAddToAction(
00111 IN OUT IXML_Document ** ActionDoc,
00114 IN const char * ActionName,
00115 IN const char * ServType,
00116 IN const char * ArgName,
00117 IN const char * ArgVal
00118 );
00119
00129 EXPORT_SPEC IXML_Document* UpnpMakeActionResponse(
00130 IN const char * ActionName,
00131 IN const char * ServType,
00132 IN int NumArg,
00133 IN const char * Arg,
00134 IN ...
00135 );
00136
00155 EXPORT_SPEC int UpnpAddToActionResponse(
00156 IN OUT IXML_Document ** ActionResponse,
00160 IN const char * ActionName,
00161 IN const char * ServType,
00162 IN const char * ArgName,
00163 IN const char * ArgVal
00164 );
00165
00184 EXPORT_SPEC int UpnpAddToPropertySet(
00185 IN OUT IXML_Document **PropSet,
00188 IN const char * ArgName,
00189 IN const char * ArgVal
00190 );
00191
00202 EXPORT_SPEC IXML_Document* UpnpCreatePropertySet(
00203 IN int NumArg,
00204 IN const char* Arg,
00205 IN ...
00206 );
00207
00216 EXPORT_SPEC const char * UpnpGetErrorMessage(
00217 int errorcode
00218 );
00219
00221
00222 #ifdef __cplusplus
00223 }
00224 #endif
00225
00226 #endif // UPNP_HAVE_TOOLS
00227
00228 #endif // UPNP_TOOLS_H