summaryrefslogtreecommitdiff
path: root/include/hubbub
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-03-11 23:04:35 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-03-11 23:04:35 +0000
commitec1018714f31913d68fb440ec9f9a885366df12d (patch)
treea1f6128b8e35069b389bbc403b5c9b18a5233f80 /include/hubbub
parent04e5f38a5e8e471db41dd010e2c7c0ae9b016601 (diff)
downloadlibhubbub-ec1018714f31913d68fb440ec9f9a885366df12d.tar.gz
libhubbub-ec1018714f31913d68fb440ec9f9a885366df12d.tar.bz2
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
Diffstat (limited to 'include/hubbub')
-rw-r--r--include/hubbub/functypes.h6
-rw-r--r--include/hubbub/tree.h1
2 files changed, 7 insertions, 0 deletions
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
@@ -53,6 +53,12 @@ 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
*/
typedef int (*hubbub_tree_create_text)(void *ctx, const hubbub_string *data,
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;