upnptools.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002  *
00003  * Copyright (c) 2000-2003 Intel Corporation 
00004  * All rights reserved. 
00005  *
00006  * Redistribution and use in source and binary forms, with or without 
00007  * modification, are permitted provided that the following conditions are met: 
00008  *
00009  * * Redistributions of source code must retain the above copyright notice, 
00010  * this list of conditions and the following disclaimer. 
00011  * * Redistributions in binary form must reproduce the above copyright notice, 
00012  * this list of conditions and the following disclaimer in the documentation 
00013  * and/or other materials provided with the distribution. 
00014  * * Neither name of Intel Corporation nor the names of its contributors 
00015  * may be used to endorse or promote products derived from this software 
00016  * without specific prior written permission.
00017  * 
00018  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
00019  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
00020  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
00021  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
00022  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
00023  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
00024  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
00025  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
00026  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00027  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
00028  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029  *
00030  ******************************************************************************/
00031 
00032 
00033 #ifndef UPNP_TOOLS_H
00034 #define UPNP_TOOLS_H
00035 
00036 
00052 #include "ixml.h" /* for IXML_Document */
00053 
00054 
00055 /* Function declarations only if tools compiled into the library */
00056 #if UPNP_HAVE_TOOLS
00057 
00058 
00059 #ifdef __cplusplus
00060 extern "C" {
00061 #endif
00062 
00063 
00071 EXPORT_SPEC const char *UpnpGetErrorMessage(
00073         int errorcode);
00074 
00075 
00090 EXPORT_SPEC int UpnpResolveURL(
00092         const char *BaseURL,
00094         const char *RelURL,
00096         char *AbsURL);
00097 
00098 
00112 EXPORT_SPEC IXML_Document *UpnpMakeAction(
00114         const char *ActionName,
00116         const char *ServType,
00118         int NumArg,
00120         const char *Arg,
00122         ...);
00123 
00124 
00138 EXPORT_SPEC IXML_Document *UpnpMakeActionResponse(
00140         const char *ActionName,
00142         const char *ServType,
00144         int NumArg,
00146         const char *Arg,
00148         ...);
00149 
00150 
00168 EXPORT_SPEC int UpnpAddToAction(
00170         IXML_Document **ActionDoc,
00172         const char *ActionName,
00174         const char *ServType,
00176         const char *ArgName,
00178         const char *ArgVal);
00179 
00180 
00199 EXPORT_SPEC int UpnpAddToActionResponse(
00201         IXML_Document **ActionResponse, 
00203         const char *ActionName,
00205         const char *ServType,
00207         const char *ArgName,
00209         const char *ArgVal);
00210 
00211 
00220 EXPORT_SPEC IXML_Document *UpnpCreatePropertySet(
00222         int NumArg,
00224         const char *Arg,
00226         ...);
00227 
00228 
00244 EXPORT_SPEC int UpnpAddToPropertySet(
00246         IXML_Document **PropSet,
00248         const char *ArgName,
00250         const char *ArgVal);
00251 
00252 
00253 #ifdef __cplusplus
00254 }
00255 #endif
00256 
00257 
00261 #endif /* UPNP_HAVE_TOOLS */
00262 
00263 
00264 #endif /* UPNP_TOOLS_H */
00265 
Generated on Fri May 21 00:33:57 2010 for libUPnP by  doxygen 1.6.3