#include "dnxTransport.h"Go to the source code of this file.
Data Structures | |
| struct | DnxXmlBuf |
Enumerations | |
| enum | DnxXmlType { DNX_XML_UNKNOWN = 0, DNX_XML_SHORT, DNX_XML_USHORT, DNX_XML_INT, DNX_XML_UINT, DNX_XML_LONG, DNX_XML_ULONG, DNX_XML_STR_UNESCAPED, DNX_XML_XID, DNX_XML_STR, DNX_XML_UNKNOWN = 0, DNX_XML_SHORT, DNX_XML_USHORT, DNX_XML_INT, DNX_XML_UINT, DNX_XML_LONG, DNX_XML_ULONG, DNX_XML_STR_UNESCAPED, DNX_XML_XID, DNX_XML_STR } |
Functions | |
| int | dnxXmlOpen (DnxXmlBuf *xbuf, char *tag) |
| Open and write header information to a dnx xml buffer. | |
| int | dnxXmlAdd (DnxXmlBuf *xbuf, char *xTag, DnxXmlType xType, void *xData) |
| Add an XML data element to a dnx xml buffer. | |
| int | dnxXmlGet (DnxXmlBuf *xbuf, char *xTag, DnxXmlType xType, void *xData) |
| Return the C data typed value associated with a specified tag. | |
| int | dnxXmlCmpStr (DnxXmlBuf *xbuf, char *xTag, char *cmpstr) |
| Compare a string with an XML node text value. | |
| int | dnxXmlClose (DnxXmlBuf *xbuf) |
| Validate and close a dnx xml buffer. | |
| enum DnxXmlType |
| int dnxXmlAdd | ( | DnxXmlBuf * | xbuf, | |
| char * | xTag, | |||
| DnxXmlType | xType, | |||
| void * | xData | |||
| ) |
Add an XML data element to a dnx xml buffer.
| [out] | xbuf | - the dnx xml buffer to be appended to. |
| [in] | xTag | - the xml tag to use for this new data element. |
| [in] | xType | - the C data type of the xml element data. |
| [in] | xData | - an opaque pointer to a C data variable to be expressed in xml in xbuf. |
| int dnxXmlClose | ( | DnxXmlBuf * | xbuf | ) |
| int dnxXmlCmpStr | ( | DnxXmlBuf * | xbuf, | |
| char * | xTag, | |||
| char * | cmpstr | |||
| ) |
Compare a string with an XML node text value.
| [in,out] | xbuf | - the buffer to be validated and closed. |
| [in] | xTag | - the tag for which to search in xbuf. |
| [in] | cmpstr | - the comparison string to match. |
| int dnxXmlGet | ( | DnxXmlBuf * | xbuf, | |
| char * | xTag, | |||
| DnxXmlType | xType, | |||
| void * | xData | |||
| ) |
Return the C data typed value associated with a specified tag.
| [in] | xbuf | - the dnx xml buffer from which to extract a value. |
| [in] | xTag | - the tag for which to search in xbuf. |
| [in] | xType | - the C data type of the specified tag. |
| [out] | xData | - the address of storage for the returned C data value. Note that xData must be large enough to hold an element of the specified C data type. In the case of a string, xData actually accepts a char pointer, not character data of a specified length. Note also that the caller is responsible for freeing the memory returned if xType is DNX_XML_STR. |
| int dnxXmlOpen | ( | DnxXmlBuf * | xbuf, | |
| char * | tag | |||
| ) |
1.5.6