From ec1018714f31913d68fb440ec9f9a885366df12d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 11 Mar 2008 23:04:35 +0000 Subject: More treebuilder (really 8.2.4.8 this time) Add tree handler entrypoint for creating elements with verbatim names svn path=/trunk/hubbub/; revision=3940 --- include/hubbub/functypes.h | 6 ++++++ include/hubbub/tree.h | 1 + 2 files changed, 7 insertions(+) (limited to 'include/hubbub') diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h index ce95303..ddc307a 100644 --- a/include/hubbub/functypes.h +++ b/include/hubbub/functypes.h @@ -52,6 +52,12 @@ typedef int (*hubbub_tree_create_doctype)(void *ctx, const hubbub_string *qname, typedef int (*hubbub_tree_create_element)(void *ctx, const hubbub_tag *tag, void **result); +/** + * Type of tree element node creation function (verbatim name) + */ +typedef int (*hubbub_tree_create_element_verbatim)(void *ctx, + const uint8_t *name, size_t name_len, void **result); + /** * Type of tree text node creation function */ diff --git a/include/hubbub/tree.h b/include/hubbub/tree.h index 5b82592..cc66acf 100644 --- a/include/hubbub/tree.h +++ b/include/hubbub/tree.h @@ -17,6 +17,7 @@ typedef struct hubbub_tree_handler { hubbub_tree_create_comment create_comment; hubbub_tree_create_doctype create_doctype; hubbub_tree_create_element create_element; + hubbub_tree_create_element_verbatim create_element_verbatim; hubbub_tree_create_text create_text; hubbub_tree_ref_node ref_node; hubbub_tree_unref_node unref_node; -- cgit v1.2.3