Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

wbxml_tree.c File Reference

WBXML Tree. More...

#include <string.h>
#include "wbxml.h"

Include dependency graph for wbxml_tree.c:

Include dependency graph

Go to the source code of this file.

Functions

WBXMLError wbxml_tree_from_wbxml (unsigned char *wbxml, unsigned int wbxml_len, WBXMLLanguage lang, WBXMLTree **tree)
WBXMLError wbxml_tree_from_xml (unsigned char *xml, WBXMLTree **tree)
WBXMLTreeAttributewbxml_tree_attribute_create (void)
 Create a Tree Attribute structure.

void wbxml_tree_attribute_destroy (WBXMLTreeAttribute *attr)
 Destroy a Tree Attribute structure.

WBXMLTreeNodewbxml_tree_node_create (WBXMLTreeNodeType type)
 Create a Tree Node structure.

void wbxml_tree_node_destroy (WBXMLTreeNode *node)
 Destroy a Tree Node structure.

WBXMLTreewbxml_tree_create (void)
 Create a Tree structure.

void wbxml_tree_destroy (WBXMLTree *tree)
 Destroy a Tree structure.

WBXMLTreeNodewbxml_tree_get_element_node_from_name (WBXMLTreeNode *node, const char *name, unsigned char recurs)


Detailed Description

WBXML Tree.

Author:
Aymerick Jéhanne <libwbxml@jehanne.org>
Date:
03/02/18

Definition in file wbxml_tree.c.


Function Documentation

WBXMLError wbxml_tree_from_wbxml unsigned char *    wbxml,
unsigned int    wbxml_len,
WBXMLLanguage    lang,
WBXMLTree **    tree
 

Definition at line 44 of file wbxml_tree.c.

References WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, NULL, WBXMLTreeClbCtx_s::tree, WB_LONG, WB_ULONG, WB_UTINY, WBXML_ERROR, WBXML_ERROR_NOT_ENOUGH_MEMORY, wbxml_errors_string(), WBXML_LANG_UNKNOWN, WBXML_OK, wbxml_parser_create(), wbxml_parser_destroy(), wbxml_parser_get_current_byte_index(), wbxml_parser_parse(), wbxml_parser_set_content_handler(), wbxml_parser_set_language(), wbxml_parser_set_user_data(), wbxml_tree_create(), wbxml_tree_destroy(), WBXMLError, and WBXMLLanguage.

WBXMLError wbxml_tree_from_xml unsigned char *    xml,
WBXMLTree **    tree
 

Definition at line 112 of file wbxml_tree.c.

References WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, WBXMLTreeClbCtx_s::input_buff, NULL, WBXMLTreeClbCtx_s::skip_lvl, WBXMLTreeClbCtx_s::skip_start, WBXMLTreeClbCtx_s::tree, TRUE, WB_TINY, WB_UTINY, WBXML_ERROR, WBXML_ERROR_NO_XMLPARSER, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_ERROR_XML_PARSING_FAILED, WBXML_OK, WBXML_STRLEN, wbxml_tree_create(), wbxml_tree_destroy(), WBXMLError, and WBXMLTreeClbCtx_s::xml_parser.

WBXMLTreeNode* wbxml_tree_get_element_node_from_name WBXMLTreeNode   node,
const char *    name,
unsigned char    recurs
 

Todo:
Handle 'recurs' TRUE

Definition at line 322 of file wbxml_tree.c.

References FALSE, WBXMLTreeNode_s::name, WBXMLTreeNode_s::next, NULL, TRUE, WBXMLTreeNode_s::type, WB_BOOL, WBXML_STRCMP, wbxml_tag_get_xml_name(), and WBXML_TREE_ELEMENT_NODE.


Generated on Mon Nov 24 20:09:46 2003 for WBXML Library by doxygen1.3-rc1