diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-11 16:54:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-11 16:54:30 +0000 |
commit | 5b37e1f0bfd10da6720a6587e39d3dee45f77e8d (patch) | |
tree | b5a185e4a8cef98c644f47259fb4c0a14c0d52f9 /include/hubbub/functypes.h | |
parent | de7e0ac0b651313f9e26a3a4694126c914517f53 (diff) | |
download | libhubbub-5b37e1f0bfd10da6720a6587e39d3dee45f77e8d.tar.gz libhubbub-5b37e1f0bfd10da6720a6587e39d3dee45f77e8d.tar.bz2 |
More treebuilder (up to 8.2.4.7)
Loads of issues still outstanding, including a distinct lack of error handling
Change tree handler API to allow (de)referencing of nodes rather than explicit destruction.
Change create_element handler to take an entire hubbub_tag rather than just the tag name -- the DOM binding can deal with the issue of attaching attributes to the created element node.
svn path=/trunk/hubbub/; revision=3932
Diffstat (limited to 'include/hubbub/functypes.h')
-rw-r--r-- | include/hubbub/functypes.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h index 8d7f199..ee8c429 100644 --- a/include/hubbub/functypes.h +++ b/include/hubbub/functypes.h @@ -49,8 +49,8 @@ typedef int (*hubbub_tree_create_doctype)(void *ctx, const hubbub_string *qname, /** * Type of tree element node creation function */ -typedef int (*hubbub_tree_create_element)(void *ctx, - const hubbub_string *tag_name, void **result); +typedef int (*hubbub_tree_create_element)(void *ctx, const hubbub_tag *tag, + void **result); /** * Type of tree text node creation function @@ -59,9 +59,14 @@ typedef int (*hubbub_tree_create_text)(void *ctx, const hubbub_string *data, void **result); /** - * Type of tree node destruction function + * Type of tree node reference function + */ +typedef int (*hubbub_tree_ref_node)(void *ctx, void *node); + +/** + * Type of tree node dereference function */ -typedef int (*hubbub_tree_free_node)(void *ctx, void *node); +typedef int (*hubbub_tree_unref_node)(void *ctx, void *node); /** * Type of tree node appending function |