diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/hubbub/functypes.h | 6 | ||||
-rw-r--r-- | include/hubbub/tree.h | 1 |
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; |