Files | |
file | wbxml_elt.c |
WBXML Elements. | |
file | wbxml_elt.h |
WBXML Elements. | |
Compounds | |
struct | WBXMLAttribute_s |
WBXML Attribute structure. More... | |
struct | WBXMLAttributeName_s |
WBXML Attribute Name structure. More... | |
struct | WBXMLTag_s |
WBXML Tag structure. More... | |
Typedefs | |
typedef enum WBXMLValueType_e | WBXMLValueType |
WBXML Value Type. | |
typedef WBXMLTag_s | WBXMLTag |
WBXML Tag structure. | |
typedef WBXMLAttributeName_s | WBXMLAttributeName |
WBXML Attribute Name structure. | |
typedef WBXMLAttribute_s | WBXMLAttribute |
WBXML Attribute structure. | |
Enumerations | |
enum | WBXMLValueType_e { WBXML_VALUE_TOKEN = 0, WBXML_VALUE_LITERAL } |
WBXML Value Type. More... | |
Functions | |
WBXMLTag * | wbxml_tag_create (WBXMLValueType type) |
Create a Tag structure. | |
WBXMLTag * | wbxml_tag_create_token (const WBXMLTagEntry *value) |
Additional function to create directly a Token Tag structure. | |
WBXMLTag * | wbxml_tag_create_literal (WB_UTINY *value) |
Additional function to create directly a Literal Tag structure. | |
void | wbxml_tag_destroy (WBXMLTag *tag) |
Destroy a Tag structure. | |
WBXMLTag * | wbxml_tag_duplicate (WBXMLTag *tag) |
Duplicate a Tag structure. | |
const unsigned char * | wbxml_tag_get_xml_name (WBXMLTag *tag) |
Get the XML Name of a WBXML Tag. | |
WBXMLAttributeName * | wbxml_attribute_name_create (WBXMLValueType type) |
Create an Attribute Name structure. | |
WBXMLAttributeName * | wbxml_attribute_name_create_token (const WBXMLAttrEntry *value) |
Additional function to create directly a Token Attribute Name structure. | |
WBXMLAttributeName * | wbxml_attribute_name_create_literal (WB_UTINY *value) |
Additional function to create directly a Literal Attribute Name structure. | |
void | wbxml_attribute_name_destroy (WBXMLAttributeName *name) |
Destroy an Attribute Name structure. | |
WBXMLAttributeName * | wbxml_attribute_name_duplicate (WBXMLAttributeName *name) |
Duplicate a Attribute Name structure. | |
const unsigned char * | wbxml_attribute_name_get_xml_name (WBXMLAttributeName *name) |
Get the XML Name of a WBXML Attribute Name. | |
WBXMLAttribute * | wbxml_attribute_create (void) |
Create an Attribute structure. | |
void | wbxml_attribute_destroy (WBXMLAttribute *attr) |
Destroy an Attribute structure. | |
WBXMLAttribute * | wbxml_attribute_duplicate (WBXMLAttribute *attr) |
Duplicate an Attribute structure. | |
const unsigned char * | wbxml_attribute_get_xml_name (WBXMLAttribute *attr) |
Get the XML Attribute Name of a WBXML Attribute. | |
const unsigned char * | wbxml_attribute_get_xml_value (WBXMLAttribute *attr) |
Get the XML Attribute Value of a WBXML Attribute. |
|
WBXML Attribute structure.
Of course (in this example) it should be better to have the wbxmlToken 0x4a ("url" / NULL). So you mustn't take into account the 'xmlValue' field for 'name' to get the Attribute Value of this Attribute. |
|
WBXML Attribute Name structure.
|
|
WBXML Tag structure.
|
|
WBXML Value Type.
Referenced by wbxml_attribute_name_create(), and wbxml_tag_create(). |
|
WBXML Value Type.
Definition at line 49 of file wbxml_elt.h. |
|
Create an Attribute structure.
Definition at line 267 of file wbxml_elt.c. References WBXMLAttribute_s::name, NULL, WBXMLAttribute_s::value, and wbxml_malloc(). |
|
Destroy an Attribute structure.
Definition at line 281 of file wbxml_elt.c. References WBXMLAttribute_s::name, NULL, WBXMLAttribute_s::value, wbxml_attribute_name_destroy(), wbxml_buffer_destroy(), and wbxml_free(). Referenced by wbxml_tree_attribute_destroy(). |
|
Duplicate an Attribute structure.
Definition at line 293 of file wbxml_elt.c. References WBXMLAttribute_s::name, NULL, WBXMLAttribute_s::value, wbxml_attribute_name_duplicate(), wbxml_buffer_duplicate(), and wbxml_malloc(). |
|
Get the XML Attribute Name of a WBXML Attribute.
Definition at line 310 of file wbxml_elt.c. References WBXMLAttribute_s::name, NULL, WB_UTINY, wbxml_attribute_name_get_xml_name(), and WBXML_ELT_UNKNOWN_NAME. |
|
Get the XML Attribute Value of a WBXML Attribute.
Definition at line 319 of file wbxml_elt.c. References NULL, WBXMLAttribute_s::value, WB_UTINY, wbxml_buffer_get_cstr(), and WBXML_UTINY_NULL_STRING. |
|
Create an Attribute Name structure.
Definition at line 158 of file wbxml_elt.c. References NULL, WBXMLAttributeName_s::type, WBXMLAttributeName_s::u, wbxml_malloc(), and WBXMLValueType. Referenced by wbxml_attribute_name_create_literal(), and wbxml_attribute_name_create_token(). |
|
Additional function to create directly a Literal Attribute Name structure.
|
|
Additional function to create directly a Token Attribute Name structure.
Definition at line 173 of file wbxml_elt.c. References NULL, WBXMLAttributeName_s::u, wbxml_attribute_name_create(), and WBXML_VALUE_TOKEN. |
|
Destroy an Attribute Name structure.
Definition at line 207 of file wbxml_elt.c. References NULL, WBXMLAttributeName_s::type, WBXMLAttributeName_s::u, wbxml_buffer_destroy(), wbxml_free(), and WBXML_VALUE_LITERAL. Referenced by wbxml_attribute_destroy(), and wbxml_attribute_name_create_literal(). |
|
Duplicate a Attribute Name structure.
Definition at line 219 of file wbxml_elt.c. References NULL, WBXMLAttributeName_s::type, WBXMLAttributeName_s::u, wbxml_buffer_duplicate(), wbxml_free(), wbxml_malloc(), WBXML_VALUE_LITERAL, and WBXML_VALUE_TOKEN. Referenced by wbxml_attribute_duplicate(). |
|
Get the XML Name of a WBXML Attribute Name.
Definition at line 248 of file wbxml_elt.c. References NULL, WBXMLAttributeName_s::type, WBXMLAttributeName_s::u, WB_UTINY, wbxml_buffer_get_cstr(), WBXML_ELT_UNKNOWN_NAME, WBXML_VALUE_LITERAL, and WBXML_VALUE_TOKEN. Referenced by wbxml_attribute_get_xml_name(). |
|
Create a Tag structure.
Definition at line 49 of file wbxml_elt.c. References NULL, WBXMLTag_s::type, WBXMLTag_s::u, wbxml_malloc(), and WBXMLValueType. Referenced by wbxml_tag_create_literal(), and wbxml_tag_create_token(). |
|
Additional function to create directly a Literal Tag structure.
Referenced by wbxml_tree_clb_xml_start_element(). |
|
Additional function to create directly a Token Tag structure.
Definition at line 64 of file wbxml_elt.c. References NULL, WBXMLTag_s::u, wbxml_tag_create(), and WBXML_VALUE_TOKEN. Referenced by wbxml_tree_clb_xml_start_element(). |
|
Destroy a Tag structure.
Definition at line 98 of file wbxml_elt.c. References NULL, WBXMLTag_s::type, WBXMLTag_s::u, wbxml_buffer_destroy(), wbxml_free(), and WBXML_VALUE_LITERAL. Referenced by wbxml_tag_create_literal(), wbxml_tree_clb_xml_start_element(), and wbxml_tree_node_destroy(). |
|
Duplicate a Tag structure.
Definition at line 110 of file wbxml_elt.c. References NULL, WBXMLTag_s::type, WBXMLTag_s::u, wbxml_buffer_duplicate(), wbxml_free(), wbxml_malloc(), WBXML_VALUE_LITERAL, and WBXML_VALUE_TOKEN. Referenced by wbxml_tree_clb_wbxml_start_element(). |
|
Get the XML Name of a WBXML Tag.
Definition at line 139 of file wbxml_elt.c. References NULL, WBXMLTag_s::type, WBXMLTag_s::u, WB_UTINY, wbxml_buffer_get_cstr(), WBXML_ELT_UNKNOWN_NAME, WBXML_VALUE_LITERAL, and WBXML_VALUE_TOKEN. Referenced by wbxml_tree_get_element_node_from_name(). |