SF Patch tracker [ 1587272 ] const-ified ixml
Submitted By: Erik Johansson git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@105 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
4abbd5a8a4
commit
3b12ced1f8
@ -1,3 +1,7 @@
|
|||||||
|
2006-12-23 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
|
* Erik Johansson's patch for const-ified ixml
|
||||||
|
|
||||||
2006-12-23 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
2006-12-23 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
* David Maass's patch for VStudio2005 compilation failure.
|
* David Maass's patch for VStudio2005 compilation failure.
|
||||||
|
102
ixml/inc/ixml.h
102
ixml/inc/ixml.h
@ -260,7 +260,7 @@ ixmlNode_getNodeName(IXML_Node *nodeptr
|
|||||||
* @return [DOMString] A {\bf DOMString} of the {\bf Node} value.
|
* @return [DOMString] A {\bf DOMString} of the {\bf Node} value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC DOMString
|
EXPORT_SPEC const DOMString
|
||||||
ixmlNode_getNodeValue(IXML_Node *nodeptr
|
ixmlNode_getNodeValue(IXML_Node *nodeptr
|
||||||
/** Pointer to the {\bf Node} to retrieve the value. */
|
/** Pointer to the {\bf Node} to retrieve the value. */
|
||||||
);
|
);
|
||||||
@ -282,7 +282,7 @@ ixmlNode_getNodeValue(IXML_Node *nodeptr
|
|||||||
EXPORT_SPEC int
|
EXPORT_SPEC int
|
||||||
ixmlNode_setNodeValue(IXML_Node *nodeptr,
|
ixmlNode_setNodeValue(IXML_Node *nodeptr,
|
||||||
/** The {\bf Node} to which to assign a new value. */
|
/** The {\bf Node} to which to assign a new value. */
|
||||||
char *newNodeValue
|
const char *newNodeValue
|
||||||
/** The new value of the {\bf Node}. */
|
/** The new value of the {\bf Node}. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ ixmlNode_getNamespaceURI(IXML_Node *nodeptr
|
|||||||
* or {\tt NULL}.
|
* or {\tt NULL}.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC DOMString
|
EXPORT_SPEC const DOMString
|
||||||
ixmlNode_getPrefix(IXML_Node *nodeptr
|
ixmlNode_getPrefix(IXML_Node *nodeptr
|
||||||
/** The {\bf Node} from which to retrieve the prefix. */
|
/** The {\bf Node} from which to retrieve the prefix. */
|
||||||
);
|
);
|
||||||
@ -867,7 +867,7 @@ EXPORT_SPEC int
|
|||||||
ixmlDocument_createCDATASectionEx(IXML_Document *doc,
|
ixmlDocument_createCDATASectionEx(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
node. */
|
node. */
|
||||||
DOMString data,
|
const DOMString data,
|
||||||
/** The data to associate with the new
|
/** The data to associate with the new
|
||||||
{\bf CDATASection} node. */
|
{\bf CDATASection} node. */
|
||||||
IXML_CDATASection** cdNode
|
IXML_CDATASection** cdNode
|
||||||
@ -886,7 +886,7 @@ EXPORT_SPEC IXML_CDATASection*
|
|||||||
ixmlDocument_createCDATASection(IXML_Document *doc,
|
ixmlDocument_createCDATASection(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
node. */
|
node. */
|
||||||
DOMString data
|
const DOMString data
|
||||||
/** The data to associate with the new {\bf
|
/** The data to associate with the new {\bf
|
||||||
CDATASection} node. */
|
CDATASection} node. */
|
||||||
);
|
);
|
||||||
@ -899,7 +899,7 @@ ixmlDocument_createCDATASection(IXML_Document *doc,
|
|||||||
EXPORT_SPEC IXML_Attr*
|
EXPORT_SPEC IXML_Attr*
|
||||||
ixmlDocument_createAttribute(IXML_Document *doc,
|
ixmlDocument_createAttribute(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new node. */
|
/** The owner {\bf Document} of the new node. */
|
||||||
char *name
|
const char *name
|
||||||
/** The name of the new attribute. */
|
/** The name of the new attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -924,7 +924,7 @@ EXPORT_SPEC int
|
|||||||
ixmlDocument_createAttributeEx(IXML_Document *doc,
|
ixmlDocument_createAttributeEx(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
node. */
|
node. */
|
||||||
char *name,
|
const char *name,
|
||||||
/** The name of the new attribute. */
|
/** The name of the new attribute. */
|
||||||
IXML_Attr** attrNode
|
IXML_Attr** attrNode
|
||||||
/** A pointer to a {\bf Attr} where the new
|
/** A pointer to a {\bf Attr} where the new
|
||||||
@ -943,7 +943,7 @@ ixmlDocument_createAttributeEx(IXML_Document *doc,
|
|||||||
EXPORT_SPEC IXML_NodeList*
|
EXPORT_SPEC IXML_NodeList*
|
||||||
ixmlDocument_getElementsByTagName(IXML_Document *doc,
|
ixmlDocument_getElementsByTagName(IXML_Document *doc,
|
||||||
/** The {\bf Document} to search. */
|
/** The {\bf Document} to search. */
|
||||||
DOMString tagName
|
const DOMString tagName
|
||||||
/** The tag name to find. */
|
/** The tag name to find. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -970,10 +970,10 @@ EXPORT_SPEC int
|
|||||||
ixmlDocument_createElementNSEx(IXML_Document *doc,
|
ixmlDocument_createElementNSEx(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
node. */
|
node. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI for the new {\bf
|
/** The namespace URI for the new {\bf
|
||||||
Element}. */
|
Element}. */
|
||||||
DOMString qualifiedName,
|
const DOMString qualifiedName,
|
||||||
/** The qualified name of the new {\bf
|
/** The qualified name of the new {\bf
|
||||||
Element}. */
|
Element}. */
|
||||||
IXML_Element** rtElement
|
IXML_Element** rtElement
|
||||||
@ -992,10 +992,10 @@ ixmlDocument_createElementNSEx(IXML_Document *doc,
|
|||||||
EXPORT_SPEC IXML_Element*
|
EXPORT_SPEC IXML_Element*
|
||||||
ixmlDocument_createElementNS(IXML_Document *doc,
|
ixmlDocument_createElementNS(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new node. */
|
/** The owner {\bf Document} of the new node. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI for the new {\bf
|
/** The namespace URI for the new {\bf
|
||||||
Element}. */
|
Element}. */
|
||||||
DOMString qualifiedName
|
const DOMString qualifiedName
|
||||||
/** The qualified name of the new {\bf
|
/** The qualified name of the new {\bf
|
||||||
Element}. */
|
Element}. */
|
||||||
);
|
);
|
||||||
@ -1021,9 +1021,9 @@ EXPORT_SPEC int
|
|||||||
ixmlDocument_createAttributeNSEx(IXML_Document *doc,
|
ixmlDocument_createAttributeNSEx(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
{\bf Attr}. */
|
{\bf Attr}. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI for the attribute. */
|
/** The namespace URI for the attribute. */
|
||||||
DOMString qualifiedName,
|
const DOMString qualifiedName,
|
||||||
/** The qualified name of the attribute. */
|
/** The qualified name of the attribute. */
|
||||||
IXML_Attr** attrNode
|
IXML_Attr** attrNode
|
||||||
/** A pointer to an {\bf Attr} where the
|
/** A pointer to an {\bf Attr} where the
|
||||||
@ -1040,9 +1040,9 @@ EXPORT_SPEC IXML_Attr*
|
|||||||
ixmlDocument_createAttributeNS(IXML_Document *doc,
|
ixmlDocument_createAttributeNS(IXML_Document *doc,
|
||||||
/** The owner {\bf Document} of the new
|
/** The owner {\bf Document} of the new
|
||||||
{\bf Attr}. */
|
{\bf Attr}. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI for the attribute. */
|
/** The namespace URI for the attribute. */
|
||||||
DOMString qualifiedName
|
const DOMString qualifiedName
|
||||||
/** The qualified name of the attribute. */
|
/** The qualified name of the attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1059,11 +1059,11 @@ ixmlDocument_createAttributeNS(IXML_Document *doc,
|
|||||||
EXPORT_SPEC IXML_NodeList*
|
EXPORT_SPEC IXML_NodeList*
|
||||||
ixmlDocument_getElementsByTagNameNS(IXML_Document* doc,
|
ixmlDocument_getElementsByTagNameNS(IXML_Document* doc,
|
||||||
/** The {\bf Document} to search. */
|
/** The {\bf Document} to search. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace of the elements to
|
/** The namespace of the elements to
|
||||||
find or {\tt "*"} to match any
|
find or {\tt "*"} to match any
|
||||||
namespace. */
|
namespace. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the elements to
|
/** The local name of the elements to
|
||||||
find or {\tt "*"} to match any local
|
find or {\tt "*"} to match any local
|
||||||
name. */
|
name. */
|
||||||
@ -1079,7 +1079,7 @@ EXPORT_SPEC IXML_Element*
|
|||||||
ixmlDocument_getElementById(IXML_Document* doc,
|
ixmlDocument_getElementById(IXML_Document* doc,
|
||||||
/** The owner {\bf Document} of the {\bf
|
/** The owner {\bf Document} of the {\bf
|
||||||
Element}. */
|
Element}. */
|
||||||
DOMString tagName
|
const DOMString tagName
|
||||||
/** The name of the {\bf Element}.*/
|
/** The name of the {\bf Element}.*/
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1174,11 +1174,11 @@ ixmlElement_getTagName(IXML_Element* element
|
|||||||
* attribute.
|
* attribute.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC DOMString
|
EXPORT_SPEC const DOMString
|
||||||
ixmlElement_getAttribute(IXML_Element* element,
|
ixmlElement_getAttribute(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to retrieve the
|
/** The {\bf Element} from which to retrieve the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the attribute to retrieve. */
|
/** The name of the attribute to retrieve. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1202,9 +1202,9 @@ EXPORT_SPEC int
|
|||||||
ixmlElement_setAttribute(IXML_Element* element,
|
ixmlElement_setAttribute(IXML_Element* element,
|
||||||
/** The {\bf Element} on which to set the
|
/** The {\bf Element} on which to set the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString name,
|
const DOMString name,
|
||||||
/** The name of the attribute. */
|
/** The name of the attribute. */
|
||||||
DOMString value
|
const DOMString value
|
||||||
/** The value of the attribute. Note that this is
|
/** The value of the attribute. Note that this is
|
||||||
a non-parsed string and any markup must be
|
a non-parsed string and any markup must be
|
||||||
escaped. */
|
escaped. */
|
||||||
@ -1224,7 +1224,7 @@ EXPORT_SPEC int
|
|||||||
ixmlElement_removeAttribute(IXML_Element* element,
|
ixmlElement_removeAttribute(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to remove the
|
/** The {\bf Element} from which to remove the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the attribute to remove. */
|
/** The name of the attribute to remove. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1240,7 +1240,7 @@ EXPORT_SPEC IXML_Attr*
|
|||||||
ixmlElement_getAttributeNode(IXML_Element* element,
|
ixmlElement_getAttributeNode(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to get the
|
/** The {\bf Element} from which to get the
|
||||||
attribute node. */
|
attribute node. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the attribute node to find. */
|
/** The name of the attribute node to find. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1309,7 +1309,7 @@ EXPORT_SPEC IXML_NodeList*
|
|||||||
ixmlElement_getElementsByTagName(IXML_Element* element,
|
ixmlElement_getElementsByTagName(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to start
|
/** The {\bf Element} from which to start
|
||||||
the search. */
|
the search. */
|
||||||
DOMString tagName
|
const DOMString tagName
|
||||||
/** The name of the tag for which to
|
/** The name of the tag for which to
|
||||||
search. */
|
search. */
|
||||||
);
|
);
|
||||||
@ -1322,13 +1322,13 @@ ixmlElement_getElementsByTagName(IXML_Element* element,
|
|||||||
* matching attribute.
|
* matching attribute.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC DOMString
|
EXPORT_SPEC const DOMString
|
||||||
ixmlElement_getAttributeNS(IXML_Element* element,
|
ixmlElement_getAttributeNS(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to get the
|
/** The {\bf Element} from which to get the
|
||||||
attribute value. */
|
attribute value. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the attribute. */
|
/** The namespace URI of the attribute. */
|
||||||
DOMString localname
|
const DOMString localname
|
||||||
/** The local name of the attribute. */
|
/** The local name of the attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1358,11 +1358,11 @@ EXPORT_SPEC int
|
|||||||
ixmlElement_setAttributeNS(IXML_Element* element,
|
ixmlElement_setAttributeNS(IXML_Element* element,
|
||||||
/** The {\bf Element} on which to set the
|
/** The {\bf Element} on which to set the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the new attribute. */
|
/** The namespace URI of the new attribute. */
|
||||||
DOMString qualifiedName,
|
const DOMString qualifiedName,
|
||||||
/** The qualified name of the attribute. */
|
/** The qualified name of the attribute. */
|
||||||
DOMString value
|
const DOMString value
|
||||||
/** The new value for the attribute. */
|
/** The new value for the attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1380,9 +1380,9 @@ EXPORT_SPEC int
|
|||||||
ixmlElement_removeAttributeNS(IXML_Element* element,
|
ixmlElement_removeAttributeNS(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to remove the
|
/** The {\bf Element} from which to remove the
|
||||||
the attribute. */
|
the attribute. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the attribute. */
|
/** The namespace URI of the attribute. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the attribute.*/
|
/** The local name of the attribute.*/
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1395,9 +1395,9 @@ EXPORT_SPEC IXML_Attr*
|
|||||||
ixmlElement_getAttributeNodeNS(IXML_Element* element,
|
ixmlElement_getAttributeNodeNS(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to get the
|
/** The {\bf Element} from which to get the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the attribute. */
|
/** The namespace URI of the attribute. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the attribute. */
|
/** The local name of the attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1441,10 +1441,10 @@ EXPORT_SPEC IXML_NodeList*
|
|||||||
ixmlElement_getElementsByTagNameNS(IXML_Element* element,
|
ixmlElement_getElementsByTagNameNS(IXML_Element* element,
|
||||||
/** The {\bf Element} from which to start
|
/** The {\bf Element} from which to start
|
||||||
the search. */
|
the search. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the {\bf
|
/** The namespace URI of the {\bf
|
||||||
Element}s to find. */
|
Element}s to find. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the {\bf Element}s
|
/** The local name of the {\bf Element}s
|
||||||
to find. */
|
to find. */
|
||||||
);
|
);
|
||||||
@ -1461,7 +1461,7 @@ EXPORT_SPEC BOOL
|
|||||||
ixmlElement_hasAttribute(IXML_Element* element,
|
ixmlElement_hasAttribute(IXML_Element* element,
|
||||||
/** The {\bf Element} on which to check for an
|
/** The {\bf Element} on which to check for an
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the attribute for which to check. */
|
/** The name of the attribute for which to check. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1477,9 +1477,9 @@ EXPORT_SPEC BOOL
|
|||||||
ixmlElement_hasAttributeNS(IXML_Element* element,
|
ixmlElement_hasAttributeNS(IXML_Element* element,
|
||||||
/** The {\bf Element} on which to check for the
|
/** The {\bf Element} on which to check for the
|
||||||
attribute. */
|
attribute. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the attribute. */
|
/** The namespace URI of the attribute. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the attribute. */
|
/** The local name of the attribute. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1529,7 +1529,7 @@ ixmlNamedNodeMap_getLength(IXML_NamedNodeMap *nnMap
|
|||||||
EXPORT_SPEC IXML_Node*
|
EXPORT_SPEC IXML_Node*
|
||||||
ixmlNamedNodeMap_getNamedItem(IXML_NamedNodeMap *nnMap,
|
ixmlNamedNodeMap_getNamedItem(IXML_NamedNodeMap *nnMap,
|
||||||
/** The {\bf NamedNodeMap} to search. */
|
/** The {\bf NamedNodeMap} to search. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the {\bf Node} to find. */
|
/** The name of the {\bf Node} to find. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1560,7 +1560,7 @@ EXPORT_SPEC IXML_Node*
|
|||||||
ixmlNamedNodeMap_removeNamedItem(IXML_NamedNodeMap *nnMap,
|
ixmlNamedNodeMap_removeNamedItem(IXML_NamedNodeMap *nnMap,
|
||||||
/** The {\bf NamedNodeMap} from which to
|
/** The {\bf NamedNodeMap} from which to
|
||||||
remove the item. */
|
remove the item. */
|
||||||
DOMString name
|
const DOMString name
|
||||||
/** The name of the item to remove. */
|
/** The name of the item to remove. */
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1592,10 +1592,10 @@ EXPORT_SPEC IXML_Node*
|
|||||||
ixmlNamedNodeMap_getNamedItemNS(IXML_NamedNodeMap *nnMap,
|
ixmlNamedNodeMap_getNamedItemNS(IXML_NamedNodeMap *nnMap,
|
||||||
/** The {\bf NamedNodeMap} from which to
|
/** The {\bf NamedNodeMap} from which to
|
||||||
remove the {\bf Node}. */
|
remove the {\bf Node}. */
|
||||||
DOMString *namespaceURI,
|
const DOMString *namespaceURI,
|
||||||
/** The namespace URI of the {\bf Node} to
|
/** The namespace URI of the {\bf Node} to
|
||||||
remove. */
|
remove. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the {\bf Node} to
|
/** The local name of the {\bf Node} to
|
||||||
remove. */
|
remove. */
|
||||||
);
|
);
|
||||||
@ -1627,10 +1627,10 @@ EXPORT_SPEC IXML_Node*
|
|||||||
ixmlNamedNodeMap_removeNamedItemNS(IXML_NamedNodeMap *nnMap,
|
ixmlNamedNodeMap_removeNamedItemNS(IXML_NamedNodeMap *nnMap,
|
||||||
/** The {\bf NamedNodeMap} from which to
|
/** The {\bf NamedNodeMap} from which to
|
||||||
remove the {\bf Node}. */
|
remove the {\bf Node}. */
|
||||||
DOMString namespaceURI,
|
const DOMString namespaceURI,
|
||||||
/** The namespace URI of the {\bf Node}
|
/** The namespace URI of the {\bf Node}
|
||||||
to remove. */
|
to remove. */
|
||||||
DOMString localName
|
const DOMString localName
|
||||||
/** The local name of the {\bf Node} to
|
/** The local name of the {\bf Node} to
|
||||||
remove. */
|
remove. */
|
||||||
);
|
);
|
||||||
@ -1819,7 +1819,7 @@ ixmlRelaxParser(char errorChar);
|
|||||||
* {\tt NULL} on an error.
|
* {\tt NULL} on an error.
|
||||||
*/
|
*/
|
||||||
EXPORT_SPEC IXML_Document*
|
EXPORT_SPEC IXML_Document*
|
||||||
ixmlParseBuffer(char *buffer
|
ixmlParseBuffer(const char *buffer
|
||||||
/** The buffer that contains the XML text to convert to a
|
/** The buffer that contains the XML text to convert to a
|
||||||
{\bf Document}. */
|
{\bf Document}. */
|
||||||
);
|
);
|
||||||
@ -1842,7 +1842,7 @@ ixmlParseBuffer(char *buffer
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC int
|
EXPORT_SPEC int
|
||||||
ixmlParseBufferEx(char *buffer,
|
ixmlParseBufferEx(const char *buffer,
|
||||||
/** The buffer that contains the XML text to convert to a
|
/** The buffer that contains the XML text to convert to a
|
||||||
{\bf Document}. */
|
{\bf Document}. */
|
||||||
IXML_Document** doc
|
IXML_Document** doc
|
||||||
@ -1857,7 +1857,7 @@ ixmlParseBufferEx(char *buffer,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC IXML_Document*
|
EXPORT_SPEC IXML_Document*
|
||||||
ixmlLoadDocument(char* xmlFile
|
ixmlLoadDocument(const char* xmlFile
|
||||||
/** The filename of the XML text to convert to a {\bf
|
/** The filename of the XML text to convert to a {\bf
|
||||||
Document}. */
|
Document}. */
|
||||||
);
|
);
|
||||||
@ -1879,7 +1879,7 @@ ixmlLoadDocument(char* xmlFile
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
EXPORT_SPEC int
|
EXPORT_SPEC int
|
||||||
ixmlLoadDocumentEx(char* xmlFile,
|
ixmlLoadDocumentEx(const char* xmlFile,
|
||||||
/** The filename of the XML text to convert to a {\bf
|
/** The filename of the XML text to convert to a {\bf
|
||||||
Document}. */
|
Document}. */
|
||||||
IXML_Document** doc
|
IXML_Document** doc
|
||||||
|
@ -373,7 +373,7 @@ ixmlDocument_createTextNode( IN IXML_Document * doc,
|
|||||||
================================================================*/
|
================================================================*/
|
||||||
int
|
int
|
||||||
ixmlDocument_createAttributeEx( IN IXML_Document * doc,
|
ixmlDocument_createAttributeEx( IN IXML_Document * doc,
|
||||||
IN char *name,
|
IN const char *name,
|
||||||
OUT IXML_Attr ** rtAttr )
|
OUT IXML_Attr ** rtAttr )
|
||||||
{
|
{
|
||||||
IXML_Attr *attrNode = NULL;
|
IXML_Attr *attrNode = NULL;
|
||||||
@ -427,7 +427,7 @@ ixmlDocument_createAttributeEx( IN IXML_Document * doc,
|
|||||||
================================================================*/
|
================================================================*/
|
||||||
IXML_Attr *
|
IXML_Attr *
|
||||||
ixmlDocument_createAttribute( IN IXML_Document * doc,
|
ixmlDocument_createAttribute( IN IXML_Document * doc,
|
||||||
IN char *name )
|
IN const char *name )
|
||||||
{
|
{
|
||||||
IXML_Attr *attrNode = NULL;
|
IXML_Attr *attrNode = NULL;
|
||||||
|
|
||||||
@ -451,8 +451,8 @@ ixmlDocument_createAttribute( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlDocument_createAttributeNSEx( IN IXML_Document * doc,
|
ixmlDocument_createAttributeNSEx( IN IXML_Document * doc,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString qualifiedName,
|
IN const DOMString qualifiedName,
|
||||||
OUT IXML_Attr ** rtAttr )
|
OUT IXML_Attr ** rtAttr )
|
||||||
{
|
{
|
||||||
IXML_Attr *attrNode = NULL;
|
IXML_Attr *attrNode = NULL;
|
||||||
@ -507,8 +507,8 @@ ixmlDocument_createAttributeNSEx( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Attr *
|
IXML_Attr *
|
||||||
ixmlDocument_createAttributeNS( IN IXML_Document * doc,
|
ixmlDocument_createAttributeNS( IN IXML_Document * doc,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString qualifiedName )
|
IN const DOMString qualifiedName )
|
||||||
{
|
{
|
||||||
IXML_Attr *attrNode = NULL;
|
IXML_Attr *attrNode = NULL;
|
||||||
|
|
||||||
@ -531,7 +531,7 @@ ixmlDocument_createAttributeNS( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlDocument_createCDATASectionEx( IN IXML_Document * doc,
|
ixmlDocument_createCDATASectionEx( IN IXML_Document * doc,
|
||||||
IN DOMString data,
|
IN const DOMString data,
|
||||||
OUT IXML_CDATASection ** rtCD )
|
OUT IXML_CDATASection ** rtCD )
|
||||||
{
|
{
|
||||||
int errCode = IXML_SUCCESS;
|
int errCode = IXML_SUCCESS;
|
||||||
@ -588,7 +588,7 @@ ixmlDocument_createCDATASectionEx( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_CDATASection *
|
IXML_CDATASection *
|
||||||
ixmlDocument_createCDATASection( IN IXML_Document * doc,
|
ixmlDocument_createCDATASection( IN IXML_Document * doc,
|
||||||
IN DOMString data )
|
IN const DOMString data )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_CDATASection *cDSectionNode = NULL;
|
IXML_CDATASection *cDSectionNode = NULL;
|
||||||
@ -613,8 +613,8 @@ ixmlDocument_createCDATASection( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlDocument_createElementNSEx( IN IXML_Document * doc,
|
ixmlDocument_createElementNSEx( IN IXML_Document * doc,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString qualifiedName,
|
IN const DOMString qualifiedName,
|
||||||
OUT IXML_Element ** rtElement )
|
OUT IXML_Element ** rtElement )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -673,8 +673,8 @@ ixmlDocument_createElementNSEx( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Element *
|
IXML_Element *
|
||||||
ixmlDocument_createElementNS( IN IXML_Document * doc,
|
ixmlDocument_createElementNS( IN IXML_Document * doc,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString qualifiedName )
|
IN const DOMString qualifiedName )
|
||||||
{
|
{
|
||||||
IXML_Element *newElement = NULL;
|
IXML_Element *newElement = NULL;
|
||||||
|
|
||||||
@ -698,7 +698,7 @@ ixmlDocument_createElementNS( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_NodeList *
|
IXML_NodeList *
|
||||||
ixmlDocument_getElementsByTagName( IN IXML_Document * doc,
|
ixmlDocument_getElementsByTagName( IN IXML_Document * doc,
|
||||||
IN char *tagName )
|
IN const char *tagName )
|
||||||
{
|
{
|
||||||
IXML_NodeList *returnNodeList = NULL;
|
IXML_NodeList *returnNodeList = NULL;
|
||||||
|
|
||||||
@ -728,8 +728,8 @@ ixmlDocument_getElementsByTagName( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_NodeList *
|
IXML_NodeList *
|
||||||
ixmlDocument_getElementsByTagNameNS( IN IXML_Document * doc,
|
ixmlDocument_getElementsByTagNameNS( IN IXML_Document * doc,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
IXML_NodeList *returnNodeList = NULL;
|
IXML_NodeList *returnNodeList = NULL;
|
||||||
|
|
||||||
@ -756,7 +756,7 @@ ixmlDocument_getElementsByTagNameNS( IN IXML_Document * doc,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Element *
|
IXML_Element *
|
||||||
ixmlDocument_getElementById( IN IXML_Document * doc,
|
ixmlDocument_getElementById( IN IXML_Document * doc,
|
||||||
IN DOMString tagName )
|
IN const DOMString tagName )
|
||||||
{
|
{
|
||||||
IXML_Element *rtElement = NULL;
|
IXML_Element *rtElement = NULL;
|
||||||
IXML_Node *nodeptr = ( IXML_Node * ) doc;
|
IXML_Node *nodeptr = ( IXML_Node * ) doc;
|
||||||
|
@ -71,7 +71,7 @@ ixmlElement_getTagName( IN IXML_Element * element )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlElement_setTagName( IN IXML_Element * element,
|
ixmlElement_setTagName( IN IXML_Element * element,
|
||||||
IN char *tagName )
|
IN const char *tagName )
|
||||||
{
|
{
|
||||||
int rc = IXML_SUCCESS;
|
int rc = IXML_SUCCESS;
|
||||||
|
|
||||||
@ -104,9 +104,9 @@ ixmlElement_setTagName( IN IXML_Element * element,
|
|||||||
* does not have a specified value.
|
* does not have a specified value.
|
||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
DOMString
|
const DOMString
|
||||||
ixmlElement_getAttribute( IN IXML_Element * element,
|
ixmlElement_getAttribute( IN IXML_Element * element,
|
||||||
IN DOMString name )
|
IN const DOMString name )
|
||||||
{
|
{
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
|
|
||||||
@ -142,8 +142,8 @@ ixmlElement_getAttribute( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlElement_setAttribute( IN IXML_Element * element,
|
ixmlElement_setAttribute( IN IXML_Element * element,
|
||||||
IN char *name,
|
IN const char *name,
|
||||||
IN char *value )
|
IN const char *value )
|
||||||
{
|
{
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
IXML_Attr *newAttrNode;
|
IXML_Attr *newAttrNode;
|
||||||
@ -221,7 +221,7 @@ ixmlElement_setAttribute( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlElement_removeAttribute( IN IXML_Element * element,
|
ixmlElement_removeAttribute( IN IXML_Element * element,
|
||||||
IN char *name )
|
IN const char *name )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
@ -262,7 +262,7 @@ ixmlElement_removeAttribute( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Attr *
|
IXML_Attr *
|
||||||
ixmlElement_getAttributeNode( IN IXML_Element * element,
|
ixmlElement_getAttributeNode( IN IXML_Element * element,
|
||||||
IN char *name )
|
IN const char *name )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
@ -483,7 +483,7 @@ ixmlElement_removeAttributeNode( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_NodeList *
|
IXML_NodeList *
|
||||||
ixmlElement_getElementsByTagName( IN IXML_Element * element,
|
ixmlElement_getElementsByTagName( IN IXML_Element * element,
|
||||||
IN char *tagName )
|
IN const char *tagName )
|
||||||
{
|
{
|
||||||
IXML_NodeList *returnNodeList = NULL;
|
IXML_NodeList *returnNodeList = NULL;
|
||||||
|
|
||||||
@ -508,10 +508,10 @@ ixmlElement_getElementsByTagName( IN IXML_Element * element,
|
|||||||
* not have the specified value.
|
* not have the specified value.
|
||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
DOMString
|
const DOMString
|
||||||
ixmlElement_getAttributeNS( IN IXML_Element * element,
|
ixmlElement_getAttributeNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
|
|
||||||
@ -553,9 +553,9 @@ ixmlElement_getAttributeNS( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlElement_setAttributeNS( IN IXML_Element * element,
|
ixmlElement_setAttributeNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString qualifiedName,
|
IN const DOMString qualifiedName,
|
||||||
IN DOMString value )
|
IN const DOMString value )
|
||||||
{
|
{
|
||||||
IXML_Node *attrNode = NULL;
|
IXML_Node *attrNode = NULL;
|
||||||
IXML_Node newAttrNode;
|
IXML_Node newAttrNode;
|
||||||
@ -672,8 +672,8 @@ ixmlElement_setAttributeNS( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlElement_removeAttributeNS( IN IXML_Element * element,
|
ixmlElement_removeAttributeNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
|
|
||||||
@ -719,8 +719,8 @@ ixmlElement_removeAttributeNS( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Attr *
|
IXML_Attr *
|
||||||
ixmlElement_getAttributeNodeNS( IN IXML_Element * element,
|
ixmlElement_getAttributeNodeNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
@ -861,8 +861,8 @@ ixmlElement_setAttributeNodeNS( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_NodeList *
|
IXML_NodeList *
|
||||||
ixmlElement_getElementsByTagNameNS( IN IXML_Element * element,
|
ixmlElement_getElementsByTagNameNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
IXML_Node *node = ( IXML_Node * ) element;
|
IXML_Node *node = ( IXML_Node * ) element;
|
||||||
IXML_NodeList *nodeList = NULL;
|
IXML_NodeList *nodeList = NULL;
|
||||||
@ -892,7 +892,7 @@ ixmlElement_getElementsByTagNameNS( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
BOOL
|
BOOL
|
||||||
ixmlElement_hasAttribute( IN IXML_Element * element,
|
ixmlElement_hasAttribute( IN IXML_Element * element,
|
||||||
IN DOMString name )
|
IN const DOMString name )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
@ -930,8 +930,8 @@ ixmlElement_hasAttribute( IN IXML_Element * element,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
BOOL
|
BOOL
|
||||||
ixmlElement_hasAttributeNS( IN IXML_Element * element,
|
ixmlElement_hasAttributeNS( IN IXML_Element * element,
|
||||||
IN DOMString namespaceURI,
|
IN const DOMString namespaceURI,
|
||||||
IN DOMString localName )
|
IN const DOMString localName )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Node *attrNode;
|
IXML_Node *attrNode;
|
||||||
|
@ -88,8 +88,8 @@ typedef struct _Parser
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int Parser_LoadDocument( IXML_Document **retDoc, char * xmlFile, BOOL file);
|
int Parser_LoadDocument( IXML_Document **retDoc, const char * xmlFile, BOOL file);
|
||||||
BOOL Parser_isValidXmlName( DOMString name);
|
BOOL Parser_isValidXmlName( const DOMString name);
|
||||||
int Parser_setNodePrefixAndLocalName(IXML_Node *newIXML_NodeIXML_Attr);
|
int Parser_setNodePrefixAndLocalName(IXML_Node *newIXML_NodeIXML_Attr);
|
||||||
void Parser_freeNodeContent( IXML_Node *IXML_Nodeptr);
|
void Parser_freeNodeContent( IXML_Node *IXML_Nodeptr);
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ void Parser_setErrorChar( char c );
|
|||||||
void ixmlAttr_free(IXML_Attr *attrNode);
|
void ixmlAttr_free(IXML_Attr *attrNode);
|
||||||
void ixmlAttr_init(IXML_Attr *attrNode);
|
void ixmlAttr_init(IXML_Attr *attrNode);
|
||||||
|
|
||||||
int ixmlElement_setTagName(IXML_Element *element, char *tagName);
|
int ixmlElement_setTagName(IXML_Element *element, const char *tagName);
|
||||||
|
|
||||||
void ixmlNamedNodeMap_init(IXML_NamedNodeMap *nnMap);
|
void ixmlNamedNodeMap_init(IXML_NamedNodeMap *nnMap);
|
||||||
int ixmlNamedNodeMap_addToNamedNodeMap(IXML_NamedNodeMap **nnMap, IXML_Node *add);
|
int ixmlNamedNodeMap_addToNamedNodeMap(IXML_NamedNodeMap **nnMap, IXML_Node *add);
|
||||||
@ -106,12 +106,12 @@ int ixmlNamedNodeMap_addToNamedNodeMap(IXML_NamedNodeMap **nnMap, IXML_Node
|
|||||||
void ixmlNode_init(IXML_Node *IXML_Nodeptr);
|
void ixmlNode_init(IXML_Node *IXML_Nodeptr);
|
||||||
BOOL ixmlNode_compare(IXML_Node *srcIXML_Node, IXML_Node *destIXML_Node);
|
BOOL ixmlNode_compare(IXML_Node *srcIXML_Node, IXML_Node *destIXML_Node);
|
||||||
|
|
||||||
void ixmlNode_getElementsByTagName( IXML_Node *n, char *tagname, IXML_NodeList **list);
|
void ixmlNode_getElementsByTagName( IXML_Node *n, const char *tagname, IXML_NodeList **list);
|
||||||
void ixmlNode_getElementsByTagNameNS( IXML_Node *IXML_Node, char *namespaceURI,
|
void ixmlNode_getElementsByTagNameNS( IXML_Node *IXML_Node, const char *namespaceURI,
|
||||||
char *localName, IXML_NodeList **list);
|
const char *localName, IXML_NodeList **list);
|
||||||
|
|
||||||
int ixmlNode_setNodeProperties(IXML_Node* node, IXML_Node *src);
|
int ixmlNode_setNodeProperties(IXML_Node* node, IXML_Node *src);
|
||||||
int ixmlNode_setNodeName( IXML_Node* node, DOMString qualifiedName);
|
int ixmlNode_setNodeName( IXML_Node* node, const DOMString qualifiedName);
|
||||||
|
|
||||||
void ixmlNodeList_init(IXML_NodeList *nList);
|
void ixmlNodeList_init(IXML_NodeList *nList);
|
||||||
int ixmlNodeList_addToNodeList(IXML_NodeList **nList, IXML_Node *add);
|
int ixmlNodeList_addToNodeList(IXML_NodeList **nList, IXML_Node *add);
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
static void
|
static void
|
||||||
copy_with_escape( INOUT ixml_membuf * buf,
|
copy_with_escape( INOUT ixml_membuf * buf,
|
||||||
IN char *p )
|
IN const char *p )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int plen;
|
int plen;
|
||||||
@ -87,13 +87,13 @@ void
|
|||||||
ixmlPrintDomTreeRecursive( IN IXML_Node * nodeptr,
|
ixmlPrintDomTreeRecursive( IN IXML_Node * nodeptr,
|
||||||
IN ixml_membuf * buf )
|
IN ixml_membuf * buf )
|
||||||
{
|
{
|
||||||
char *nodeName = NULL;
|
const char *nodeName = NULL;
|
||||||
char *nodeValue = NULL;
|
const char *nodeValue = NULL;
|
||||||
IXML_Node *child = NULL,
|
IXML_Node *child = NULL,
|
||||||
*sibling = NULL;
|
*sibling = NULL;
|
||||||
|
|
||||||
if( nodeptr != NULL ) {
|
if( nodeptr != NULL ) {
|
||||||
nodeName = ( char * )ixmlNode_getNodeName( nodeptr );
|
nodeName = ( const char * )ixmlNode_getNodeName( nodeptr );
|
||||||
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
||||||
|
|
||||||
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
||||||
@ -188,15 +188,15 @@ void
|
|||||||
ixmlPrintDomTree( IN IXML_Node * nodeptr,
|
ixmlPrintDomTree( IN IXML_Node * nodeptr,
|
||||||
IN ixml_membuf * buf )
|
IN ixml_membuf * buf )
|
||||||
{
|
{
|
||||||
char *nodeName = NULL;
|
const char *nodeName = NULL;
|
||||||
char *nodeValue = NULL;
|
const char *nodeValue = NULL;
|
||||||
IXML_Node *child = NULL;
|
IXML_Node *child = NULL;
|
||||||
|
|
||||||
if( ( nodeptr == NULL ) || ( buf == NULL ) ) {
|
if( ( nodeptr == NULL ) || ( buf == NULL ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeName = ( char * )ixmlNode_getNodeName( nodeptr );
|
nodeName = ( const char * )ixmlNode_getNodeName( nodeptr );
|
||||||
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
||||||
|
|
||||||
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
||||||
@ -259,15 +259,15 @@ void
|
|||||||
ixmlDomTreetoString( IN IXML_Node * nodeptr,
|
ixmlDomTreetoString( IN IXML_Node * nodeptr,
|
||||||
IN ixml_membuf * buf )
|
IN ixml_membuf * buf )
|
||||||
{
|
{
|
||||||
char *nodeName = NULL;
|
const char *nodeName = NULL;
|
||||||
char *nodeValue = NULL;
|
const char *nodeValue = NULL;
|
||||||
IXML_Node *child = NULL;
|
IXML_Node *child = NULL;
|
||||||
|
|
||||||
if( ( nodeptr == NULL ) || ( buf == NULL ) ) {
|
if( ( nodeptr == NULL ) || ( buf == NULL ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeName = ( char * )ixmlNode_getNodeName( nodeptr );
|
nodeName = ( const char * )ixmlNode_getNodeName( nodeptr );
|
||||||
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
nodeValue = ixmlNode_getNodeValue( nodeptr );
|
||||||
|
|
||||||
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
switch ( ixmlNode_getNodeType( nodeptr ) ) {
|
||||||
@ -325,7 +325,7 @@ ixmlDomTreetoString( IN IXML_Node * nodeptr,
|
|||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlLoadDocumentEx( IN char *xmlFile,
|
ixmlLoadDocumentEx( IN const char *xmlFile,
|
||||||
IXML_Document ** doc )
|
IXML_Document ** doc )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ ixmlLoadDocumentEx( IN char *xmlFile,
|
|||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Document *
|
IXML_Document *
|
||||||
ixmlLoadDocument( IN char *xmlFile )
|
ixmlLoadDocument( IN const char *xmlFile )
|
||||||
{
|
{
|
||||||
|
|
||||||
IXML_Document *doc = NULL;
|
IXML_Document *doc = NULL;
|
||||||
@ -470,7 +470,7 @@ ixmlRelaxParser(char errorChar)
|
|||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlParseBufferEx( IN char *buffer,
|
ixmlParseBufferEx( IN const char *buffer,
|
||||||
IXML_Document ** retDoc )
|
IXML_Document ** retDoc )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -478,7 +478,7 @@ ixmlParseBufferEx( IN char *buffer,
|
|||||||
return IXML_INVALID_PARAMETER;
|
return IXML_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( strlen( buffer ) == 0 ) {
|
if( buffer[0] == '\0' ) {
|
||||||
return IXML_INVALID_PARAMETER;
|
return IXML_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -492,7 +492,7 @@ ixmlParseBufferEx( IN char *buffer,
|
|||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Document *
|
IXML_Document *
|
||||||
ixmlParseBuffer( IN char *buffer )
|
ixmlParseBuffer( IN const char *buffer )
|
||||||
{
|
{
|
||||||
IXML_Document *doc = NULL;
|
IXML_Document *doc = NULL;
|
||||||
|
|
||||||
|
@ -232,13 +232,13 @@ static BOOL Parser_ElementPrefixDefined( Parser * myParser,
|
|||||||
IXML_Node * newNode,
|
IXML_Node * newNode,
|
||||||
char **nsURI );
|
char **nsURI );
|
||||||
static int Parser_setElementNamespace( IXML_Element * newElement,
|
static int Parser_setElementNamespace( IXML_Element * newElement,
|
||||||
char *nsURI );
|
const char *nsURI );
|
||||||
static int Parser_parseDocument( IXML_Document ** retDoc,
|
static int Parser_parseDocument( IXML_Document ** retDoc,
|
||||||
Parser * domParser );
|
Parser * domParser );
|
||||||
static BOOL Parser_hasDefaultNamespace( Parser * xmlParser,
|
static BOOL Parser_hasDefaultNamespace( Parser * xmlParser,
|
||||||
IXML_Node * newNode,
|
IXML_Node * newNode,
|
||||||
char **nsURI );
|
char **nsURI );
|
||||||
static int Parser_getChar( IN char *src,
|
static int Parser_getChar( IN const char *src,
|
||||||
INOUT int *cLen );
|
INOUT int *cLen );
|
||||||
|
|
||||||
/*==============================================================================*
|
/*==============================================================================*
|
||||||
@ -312,9 +312,9 @@ Parser_isNameChar( IN int c,
|
|||||||
*
|
*
|
||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
BOOL
|
BOOL
|
||||||
Parser_isValidXmlName( IN DOMString name )
|
Parser_isValidXmlName( IN const DOMString name )
|
||||||
{
|
{
|
||||||
char *pstr = NULL;
|
const char *pstr = NULL;
|
||||||
int i = 0,
|
int i = 0,
|
||||||
nameLen = 0;
|
nameLen = 0;
|
||||||
|
|
||||||
@ -419,11 +419,11 @@ Parser_intToUTF8( IN int c,
|
|||||||
*
|
*
|
||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
static int
|
static int
|
||||||
Parser_UTF8ToInt( IN char *ss,
|
Parser_UTF8ToInt( IN const char *ss,
|
||||||
OUT int *len )
|
OUT int *len )
|
||||||
{
|
{
|
||||||
|
|
||||||
unsigned char *s = ( unsigned char * )ss;
|
const unsigned char *s = ( const unsigned char * )ss;
|
||||||
int c = *s;
|
int c = *s;
|
||||||
|
|
||||||
if( c <= 127 ) { // if c<=127, c is just the character.
|
if( c <= 127 ) { // if c<=127, c is just the character.
|
||||||
@ -602,7 +602,7 @@ Parser_popElement( IN Parser * xmlParser )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
static int
|
static int
|
||||||
Parser_readFileOrBuffer( IN Parser * xmlParser,
|
Parser_readFileOrBuffer( IN Parser * xmlParser,
|
||||||
IN char *xmlFileName,
|
IN const char *xmlFileName,
|
||||||
IN BOOL file )
|
IN BOOL file )
|
||||||
{
|
{
|
||||||
int fileSize = 0;
|
int fileSize = 0;
|
||||||
@ -651,7 +651,7 @@ Parser_readFileOrBuffer( IN Parser * xmlParser,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
Parser_LoadDocument( OUT IXML_Document ** retDoc,
|
Parser_LoadDocument( OUT IXML_Document ** retDoc,
|
||||||
IN char *xmlFileName,
|
IN const char *xmlFileName,
|
||||||
IN BOOL file )
|
IN BOOL file )
|
||||||
{
|
{
|
||||||
int rc = IXML_SUCCESS;
|
int rc = IXML_SUCCESS;
|
||||||
@ -1117,10 +1117,10 @@ Parser_skipWhiteSpaces( IN Parser * xmlParser )
|
|||||||
*
|
*
|
||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
static int
|
static int
|
||||||
Parser_getChar( IN char *src,
|
Parser_getChar( IN const char *src,
|
||||||
INOUT int *cLen )
|
INOUT int *cLen )
|
||||||
{
|
{
|
||||||
char *pnum;
|
const char *pnum;
|
||||||
int sum;
|
int sum;
|
||||||
char c;
|
char c;
|
||||||
int i;
|
int i;
|
||||||
@ -1213,13 +1213,13 @@ fail_entity:
|
|||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
static int
|
static int
|
||||||
Parser_copyToken( IN Parser * xmlParser,
|
Parser_copyToken( IN Parser * xmlParser,
|
||||||
IN char *src,
|
IN const char *src,
|
||||||
IN int len )
|
IN int len )
|
||||||
{
|
{
|
||||||
int i,
|
int i,
|
||||||
c,
|
c,
|
||||||
cl;
|
cl;
|
||||||
char *psrc,
|
const char *psrc,
|
||||||
*pend;
|
*pend;
|
||||||
utf8char uch;
|
utf8char uch;
|
||||||
|
|
||||||
@ -1563,7 +1563,7 @@ Parser_getNextToken( IN Parser * xmlParser )
|
|||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
static char *
|
static char *
|
||||||
Parser_getNameSpace( IN Parser * xmlParser,
|
Parser_getNameSpace( IN Parser * xmlParser,
|
||||||
IN char *prefix )
|
IN const char *prefix )
|
||||||
{
|
{
|
||||||
IXML_ElementStack *pCur;
|
IXML_ElementStack *pCur;
|
||||||
IXML_NamespaceURI *pNsUri;
|
IXML_NamespaceURI *pNsUri;
|
||||||
@ -1597,7 +1597,7 @@ Parser_addNamespace( IN Parser * xmlParser )
|
|||||||
{
|
{
|
||||||
IXML_Node *pNode;
|
IXML_Node *pNode;
|
||||||
IXML_ElementStack *pCur;
|
IXML_ElementStack *pCur;
|
||||||
char *namespaceUri;
|
const char *namespaceUri;
|
||||||
|
|
||||||
pNode = xmlParser->pNeedPrefixNode;
|
pNode = xmlParser->pNeedPrefixNode;
|
||||||
pCur = xmlParser->pCurElement;
|
pCur = xmlParser->pCurElement;
|
||||||
@ -2002,7 +2002,7 @@ Parser_processCDSect( IN char **pSrc,
|
|||||||
*===============================================================================*/
|
*===============================================================================*/
|
||||||
static int
|
static int
|
||||||
Parser_setElementNamespace( IN IXML_Element * newElement,
|
Parser_setElementNamespace( IN IXML_Element * newElement,
|
||||||
IN char *nsURI )
|
IN const char *nsURI )
|
||||||
{
|
{
|
||||||
if( newElement != NULL ) {
|
if( newElement != NULL ) {
|
||||||
if( newElement->n.namespaceURI != NULL ) {
|
if( newElement->n.namespaceURI != NULL ) {
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
unsigned long
|
unsigned long
|
||||||
ixmlNamedNodeMap_getItemNumber( IN IXML_NamedNodeMap * nnMap,
|
ixmlNamedNodeMap_getItemNumber( IN IXML_NamedNodeMap * nnMap,
|
||||||
IN char *name )
|
IN const char *name )
|
||||||
{
|
{
|
||||||
IXML_Node *tempNode;
|
IXML_Node *tempNode;
|
||||||
unsigned long returnItemNo = 0;
|
unsigned long returnItemNo = 0;
|
||||||
@ -92,7 +92,7 @@ ixmlNamedNodeMap_init( IN IXML_NamedNodeMap * nnMap )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
IXML_Node *
|
IXML_Node *
|
||||||
ixmlNamedNodeMap_getNamedItem( IN IXML_NamedNodeMap * nnMap,
|
ixmlNamedNodeMap_getNamedItem( IN IXML_NamedNodeMap * nnMap,
|
||||||
IN char *name )
|
IN const char *name )
|
||||||
{
|
{
|
||||||
long index;
|
long index;
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ ixmlNode_getLocalName( IN IXML_Node * nodeptr )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlNode_setNamespaceURI( IN IXML_Node * nodeptr,
|
ixmlNode_setNamespaceURI( IN IXML_Node * nodeptr,
|
||||||
IN char *namespaceURI )
|
IN const char *namespaceURI )
|
||||||
{
|
{
|
||||||
|
|
||||||
if( nodeptr == NULL ) {
|
if( nodeptr == NULL ) {
|
||||||
@ -207,7 +207,7 @@ ixmlNode_setNamespaceURI( IN IXML_Node * nodeptr,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlNode_setPrefix( IN IXML_Node * nodeptr,
|
ixmlNode_setPrefix( IN IXML_Node * nodeptr,
|
||||||
IN char *prefix )
|
IN const char *prefix )
|
||||||
{
|
{
|
||||||
|
|
||||||
if( nodeptr == NULL ) {
|
if( nodeptr == NULL ) {
|
||||||
@ -240,7 +240,7 @@ ixmlNode_setPrefix( IN IXML_Node * nodeptr,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlNode_setLocalName( IN IXML_Node * nodeptr,
|
ixmlNode_setLocalName( IN IXML_Node * nodeptr,
|
||||||
IN char *localName )
|
IN const char *localName )
|
||||||
{
|
{
|
||||||
|
|
||||||
assert( nodeptr != NULL );
|
assert( nodeptr != NULL );
|
||||||
@ -288,10 +288,10 @@ ixmlNode_getNamespaceURI( IN IXML_Node * nodeptr )
|
|||||||
* the prefix of the node.
|
* the prefix of the node.
|
||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
DOMString
|
const DOMString
|
||||||
ixmlNode_getPrefix( IN IXML_Node * nodeptr )
|
ixmlNode_getPrefix( IN IXML_Node * nodeptr )
|
||||||
{
|
{
|
||||||
DOMString prefix = NULL;
|
const DOMString prefix = NULL;
|
||||||
|
|
||||||
if( nodeptr != NULL ) {
|
if( nodeptr != NULL ) {
|
||||||
prefix = nodeptr->prefix;
|
prefix = nodeptr->prefix;
|
||||||
@ -309,7 +309,7 @@ ixmlNode_getPrefix( IN IXML_Node * nodeptr )
|
|||||||
* the nodeValue of the node.
|
* the nodeValue of the node.
|
||||||
*
|
*
|
||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
DOMString
|
const DOMString
|
||||||
ixmlNode_getNodeValue( IN IXML_Node * nodeptr )
|
ixmlNode_getNodeValue( IN IXML_Node * nodeptr )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ ixmlNode_getNodeValue( IN IXML_Node * nodeptr )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlNode_setNodeValue( IN IXML_Node * nodeptr,
|
ixmlNode_setNodeValue( IN IXML_Node * nodeptr,
|
||||||
IN char *newNodeValue )
|
IN const char *newNodeValue )
|
||||||
{
|
{
|
||||||
int rc = IXML_SUCCESS;
|
int rc = IXML_SUCCESS;
|
||||||
|
|
||||||
@ -1425,7 +1425,7 @@ ixmlNode_hasAttributes( IXML_Node * nodeptr )
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
void
|
void
|
||||||
ixmlNode_getElementsByTagNameRecursive( IN IXML_Node * n,
|
ixmlNode_getElementsByTagNameRecursive( IN IXML_Node * n,
|
||||||
IN char *tagname,
|
IN const char *tagname,
|
||||||
OUT IXML_NodeList ** list )
|
OUT IXML_NodeList ** list )
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -1457,7 +1457,7 @@ ixmlNode_getElementsByTagNameRecursive( IN IXML_Node * n,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
void
|
void
|
||||||
ixmlNode_getElementsByTagName( IN IXML_Node * n,
|
ixmlNode_getElementsByTagName( IN IXML_Node * n,
|
||||||
IN char *tagname,
|
IN const char *tagname,
|
||||||
OUT IXML_NodeList ** list )
|
OUT IXML_NodeList ** list )
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -1484,8 +1484,8 @@ ixmlNode_getElementsByTagName( IN IXML_Node * n,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
void
|
void
|
||||||
ixmlNode_getElementsByTagNameNSRecursive( IN IXML_Node * n,
|
ixmlNode_getElementsByTagNameNSRecursive( IN IXML_Node * n,
|
||||||
IN char *namespaceURI,
|
IN const char *namespaceURI,
|
||||||
IN char *localName,
|
IN const char *localName,
|
||||||
OUT IXML_NodeList ** list )
|
OUT IXML_NodeList ** list )
|
||||||
{
|
{
|
||||||
const DOMString nsURI;
|
const DOMString nsURI;
|
||||||
@ -1525,8 +1525,8 @@ ixmlNode_getElementsByTagNameNSRecursive( IN IXML_Node * n,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
void
|
void
|
||||||
ixmlNode_getElementsByTagNameNS( IN IXML_Node * n,
|
ixmlNode_getElementsByTagNameNS( IN IXML_Node * n,
|
||||||
IN char *namespaceURI,
|
IN const char *namespaceURI,
|
||||||
IN char *localName,
|
IN const char *localName,
|
||||||
OUT IXML_NodeList ** list )
|
OUT IXML_NodeList ** list )
|
||||||
{
|
{
|
||||||
const DOMString nsURI;
|
const DOMString nsURI;
|
||||||
@ -1560,7 +1560,7 @@ ixmlNode_getElementsByTagNameNS( IN IXML_Node * n,
|
|||||||
*=================================================================*/
|
*=================================================================*/
|
||||||
int
|
int
|
||||||
ixmlNode_setNodeName( IN IXML_Node * node,
|
ixmlNode_setNodeName( IN IXML_Node * node,
|
||||||
IN DOMString qualifiedName )
|
IN const DOMString qualifiedName )
|
||||||
{
|
{
|
||||||
int rc = IXML_SUCCESS;
|
int rc = IXML_SUCCESS;
|
||||||
|
|
||||||
|
@ -664,7 +664,7 @@ DOMString
|
|||||||
getElementValue( IXML_Node * node )
|
getElementValue( IXML_Node * node )
|
||||||
{
|
{
|
||||||
IXML_Node *child = ( IXML_Node * ) ixmlNode_getFirstChild( node );
|
IXML_Node *child = ( IXML_Node * ) ixmlNode_getFirstChild( node );
|
||||||
DOMString temp = NULL;
|
const DOMString temp = NULL;
|
||||||
|
|
||||||
if( ( child != 0 ) && ( ixmlNode_getNodeType( child ) == eTEXT_NODE ) ) {
|
if( ( child != 0 ) && ( ixmlNode_getNodeType( child ) == eTEXT_NODE ) ) {
|
||||||
temp = ixmlNode_getNodeValue( child );
|
temp = ixmlNode_getNodeValue( child );
|
||||||
|
@ -212,11 +212,11 @@ dom_find_deep_node( IN char *names[],
|
|||||||
*
|
*
|
||||||
* Note :The given node must have a text node as its first child
|
* Note :The given node must have a text node as its first child
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
static DOMString
|
static const DOMString
|
||||||
get_node_value( IN IXML_Node * node )
|
get_node_value( IN IXML_Node * node )
|
||||||
{
|
{
|
||||||
IXML_Node *text_node = NULL;
|
IXML_Node *text_node = NULL;
|
||||||
DOMString text_value = NULL;
|
const DOMString text_value = NULL;
|
||||||
|
|
||||||
text_node = ixmlNode_getFirstChild( node );
|
text_node = ixmlNode_getFirstChild( node );
|
||||||
if( text_node == NULL ) {
|
if( text_node == NULL ) {
|
||||||
@ -414,12 +414,12 @@ get_response_value( IN http_message_t * hmsg,
|
|||||||
IXML_Node *error_node = NULL;
|
IXML_Node *error_node = NULL;
|
||||||
IXML_Document *doc = NULL;
|
IXML_Document *doc = NULL;
|
||||||
char *node_str = NULL;
|
char *node_str = NULL;
|
||||||
char *temp_str = NULL;
|
const char *temp_str = NULL;
|
||||||
DOMString error_node_str = NULL;
|
DOMString error_node_str = NULL;
|
||||||
int err_code;
|
int err_code;
|
||||||
xboolean done = FALSE;
|
xboolean done = FALSE;
|
||||||
char *names[5];
|
char *names[5];
|
||||||
DOMString nodeValue;
|
const DOMString nodeValue;
|
||||||
|
|
||||||
err_code = UPNP_E_BAD_RESPONSE; // default error
|
err_code = UPNP_E_BAD_RESPONSE; // default error
|
||||||
|
|
||||||
|
@ -780,7 +780,7 @@ get_var_name( IN IXML_Document * TempDoc,
|
|||||||
IXML_Node *VarNameNode = NULL;
|
IXML_Node *VarNameNode = NULL;
|
||||||
IXML_Node *VarNode = NULL;
|
IXML_Node *VarNode = NULL;
|
||||||
const DOMString StNodeName = NULL;
|
const DOMString StNodeName = NULL;
|
||||||
DOMString Temp = NULL;
|
const DOMString Temp = NULL;
|
||||||
int ret_val = -1;
|
int ret_val = -1;
|
||||||
|
|
||||||
// Got the Envelop node here
|
// Got the Envelop node here
|
||||||
|
@ -112,7 +112,7 @@ CLIENTONLY( SOCKET gSsdpReqSocket = 0;
|
|||||||
IXML_Node *tmpNode = NULL;
|
IXML_Node *tmpNode = NULL;
|
||||||
IXML_Node *tmpNode2 = NULL;
|
IXML_Node *tmpNode2 = NULL;
|
||||||
IXML_Node *textNode = NULL;
|
IXML_Node *textNode = NULL;
|
||||||
DOMString tmpStr;
|
const DOMString tmpStr;
|
||||||
char SERVER[200];
|
char SERVER[200];
|
||||||
|
|
||||||
DBGONLY( const DOMString dbgStr;
|
DBGONLY( const DOMString dbgStr;
|
||||||
|
@ -213,7 +213,7 @@ config_description_doc( INOUT IXML_Document * doc,
|
|||||||
IXML_Node *rootNode = NULL;
|
IXML_Node *rootNode = NULL;
|
||||||
IXML_Node *urlbase_node = NULL;
|
IXML_Node *urlbase_node = NULL;
|
||||||
char *urlBaseStr = "URLBase";
|
char *urlBaseStr = "URLBase";
|
||||||
DOMString domStr = NULL;
|
const DOMString domStr = NULL;
|
||||||
uri_type uri;
|
uri_type uri;
|
||||||
int err_code;
|
int err_code;
|
||||||
int len;
|
int len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user