git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@414 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2008-06-04 23:06:20 +00:00
parent 00e047f3c8
commit ad8a223998

View File

@@ -120,8 +120,7 @@ typedef int BOOL;
/*! /*!
* \brief The type of the DOM node * \brief The type of the DOM node
*/ */
typedef enum typedef enum {
{
eINVALID_NODE = 0, eINVALID_NODE = 0,
eELEMENT_NODE = 1, eELEMENT_NODE = 1,
eATTRIBUTE_NODE = 2, eATTRIBUTE_NODE = 2,
@@ -141,8 +140,7 @@ typedef enum
/*! /*!
* \brief Error codes returned by the XML API, see the DOM spec * \brief Error codes returned by the XML API, see the DOM spec
*/ */
typedef enum typedef enum {
{
IXML_SUCCESS = 0, IXML_SUCCESS = 0,
IXML_INDEX_SIZE_ERR = 1, IXML_INDEX_SIZE_ERR = 1,
@@ -177,8 +175,10 @@ typedef enum
typedef struct _IXML_Document *Docptr; typedef struct _IXML_Document *Docptr;
typedef struct _IXML_Node *Nodeptr; typedef struct _IXML_Node *Nodeptr;
/*! /*!
* \brief Data structure common to all types of nodes. * \brief Data structure common to all types of nodes.
*/ */
@@ -200,22 +200,38 @@ typedef struct _IXML_Node
Docptr ownerDocument; Docptr ownerDocument;
} IXML_Node; } IXML_Node;
/*!
* \brief Data structure representing the DOM Document.
*/
typedef struct _IXML_Document typedef struct _IXML_Document
{ {
IXML_Node n; IXML_Node n;
} IXML_Document; } IXML_Document;
/*!
* \brief Data structure representing a CDATA section node.
*/
typedef struct _IXML_CDATASection typedef struct _IXML_CDATASection
{ {
IXML_Node n; IXML_Node n;
} IXML_CDATASection; } IXML_CDATASection;
/*!
* \brief Data structure representing an Element node.
*/
typedef struct _IXML_Element typedef struct _IXML_Element
{ {
IXML_Node n; IXML_Node n;
DOMString tagName; DOMString tagName;
} IXML_Element; } IXML_Element;
/*!
* \brief Data structure representing an Attribute node.
*/
typedef struct _IXML_ATTR typedef struct _IXML_ATTR
{ {
IXML_Node n; IXML_Node n;
@@ -223,21 +239,33 @@ typedef struct _IXML_ATTR
IXML_Element *ownerElement; IXML_Element *ownerElement;
} IXML_Attr; } IXML_Attr;
/*!
* \brief Data structure representing a Text node.
*/
typedef struct _IXML_Text typedef struct _IXML_Text
{ {
IXML_Node n; IXML_Node n;
} IXML_Text; } IXML_Text;
/*!
* \brief Data structure representing a list of nodes.
*/
typedef struct _IXML_NodeList typedef struct _IXML_NodeList
{ {
IXML_Node *nodeItem; IXML_Node *nodeItem;
struct _IXML_NodeList *next; struct _IXML_NodeList *next;
} IXML_NodeList; } IXML_NodeList;
/*!
* \brief Data structure representing a list of named nodes.
*/
typedef struct _IXML_NamedNodeMap typedef struct _IXML_NamedNodeMap
{ {
IXML_Node *nodeItem; IXML_Node *nodeItem;
struct _IXML_NamedNodeMap *next; struct _IXML_NamedNodeMap *next;
} IXML_NamedNodeMap; } IXML_NamedNodeMap;
/* @} DOM Interfaces */ /* @} DOM Interfaces */