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

wbxml_tree_clb_wbxml.c File Reference

WBXML Tree Callbacks for WBXML Parser. More...

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

Include dependency graph for wbxml_tree_clb_wbxml.c:

Include dependency graph

Go to the source code of this file.

Functions

WBXMLTreeAttributeconstruct_attribute_list (WBXMLAttribute **atts)
 Construct a Tree Attribute List.

void add_node_to_tree (WBXMLTreeNode *node, WBXMLTreeClbCtx *tree_ctx)
 Add a Node to Tree.

void wbxml_tree_clb_wbxml_start_document (void *ctx, int charset, const WBXMLLangEntry *lang)
void wbxml_tree_clb_wbxml_end_document (void *ctx)
 End Document Callback.

void wbxml_tree_clb_wbxml_start_element (void *ctx, WBXMLTag *element, WBXMLAttribute **attrs, unsigned char empty)
void wbxml_tree_clb_wbxml_end_element (void *ctx, WBXMLTag *element, unsigned char empty)
void wbxml_tree_clb_wbxml_characters (void *ctx, unsigned char *ch, unsigned int start, unsigned int length)
void wbxml_tree_clb_wbxml_pi (void *ctx, const unsigned char *target, unsigned char *data)


Detailed Description

WBXML Tree Callbacks for WBXML Parser.

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

Definition in file wbxml_tree_clb_wbxml.c.


Function Documentation

void add_node_to_tree WBXMLTreeNode   node,
WBXMLTreeClbCtx   tree_ctx
[static]
 

Add a Node to Tree.

Parameters:
node The Node to add
tree_ctx The Tree Context

Definition at line 257 of file wbxml_tree_clb_wbxml.c.

WBXMLTreeAttribute * construct_attribute_list WBXMLAttribute **    attrs [static]
 

Construct a Tree Attribute List.

Parameters:
attrs The Attribute Table to Duplicate
Returns:
The Attribute List, or NULL if Error

Definition at line 214 of file wbxml_tree_clb_wbxml.c.

void wbxml_tree_clb_wbxml_characters void *    ctx,
unsigned char *    ch,
unsigned int    start,
unsigned int    length
 

Definition at line 139 of file wbxml_tree_clb_wbxml.c.

References add_node_to_tree(), WBXMLTreeNode_s::content, WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, NULL, WBXMLTreeNode_s::parent, WBXMLTreeNode_s::tree, WB_ULONG, WB_UTINY, wbxml_buffer_create_real(), WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_LANG_UNKNOWN, WBXML_OK, wbxml_tree_destroy(), wbxml_tree_from_wbxml(), wbxml_tree_node_create(), wbxml_tree_node_destroy(), WBXML_TREE_TEXT_NODE, and WBXML_TREE_TREE_NODE.

void wbxml_tree_clb_wbxml_end_element void *    ctx,
WBXMLTag   element,
unsigned char    empty
 

Definition at line 114 of file wbxml_tree_clb_wbxml.c.

References WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, NULL, WBXMLTreeNode_s::parent, WBXMLTree_s::root, WBXMLTreeClbCtx_s::tree, WB_BOOL, WBXML_ERROR_INTERNAL, and WBXML_OK.

void wbxml_tree_clb_wbxml_pi void *    ctx,
const unsigned char *    target,
unsigned char *    data
 

Todo:
wbxml_tree_clb_pi()

Definition at line 199 of file wbxml_tree_clb_wbxml.c.

References WB_UTINY.

void wbxml_tree_clb_wbxml_start_document void *    ctx,
int    charset,
const WBXMLLangEntry   lang
 

Definition at line 59 of file wbxml_tree_clb_wbxml.c.

References WBXMLTreeClbCtx_s::error, WBXMLTree_s::lang, WBXMLTreeClbCtx_s::tree, WB_LONG, and WBXML_OK.

void wbxml_tree_clb_wbxml_start_element void *    ctx,
WBXMLTag   element,
WBXMLAttribute **    attrs,
unsigned char    empty
 

Definition at line 79 of file wbxml_tree_clb_wbxml.c.

References add_node_to_tree(), WBXMLTreeNode_s::attrs, construct_attribute_list(), WBXMLTreeClbCtx_s::error, WBXMLTreeNode_s::name, NULL, WB_BOOL, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_OK, wbxml_tag_duplicate(), WBXML_TREE_ELEMENT_NODE, wbxml_tree_node_create(), and wbxml_tree_node_destroy().


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