diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-04-07 02:04:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-04-07 02:04:05 +0000 |
commit | 427ce60a0cf055347b2fd7ac4a37bec59d65c3ac (patch) | |
tree | ff3c9fc5b4d0366f5b2066209bbfb0ec824a5f6d /include/hubbub/functypes.h | |
parent | 2ef742b2bbe323e50001bece2116734ec2b01ee0 (diff) | |
download | libhubbub-427ce60a0cf055347b2fd7ac4a37bec59d65c3ac.tar.gz libhubbub-427ce60a0cf055347b2fd7ac4a37bec59d65c3ac.tar.bz2 |
Implement "in body" insertion mode.
Modify treebuilder test driver to bring it in line with API changes.
A few minimal bits of testdata for various bits of in body. Proper testing will come once we're actually building a tree.
svn path=/trunk/hubbub/; revision=4076
Diffstat (limited to 'include/hubbub/functypes.h')
-rw-r--r-- | include/hubbub/functypes.h | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h index ddc307a..80c8388 100644 --- a/include/hubbub/functypes.h +++ b/include/hubbub/functypes.h @@ -9,6 +9,7 @@ #define hubbub_functypes_h_ #include <stdbool.h> +#include <stdint.h> #include <stdlib.h> #include <hubbub/types.h> @@ -53,12 +54,6 @@ 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, @@ -99,6 +94,34 @@ typedef int (*hubbub_tree_clone_node)(void *ctx, void *node, bool deep, void **result); /** + * Type of child reparenting function + */ +typedef int (*hubbub_tree_reparent_children)(void *ctx, void *node, + void *new_parent); + +/** + * Type of parent node acquisition function + */ +typedef int (*hubbub_tree_get_parent)(void *ctx, void *node, bool element_only, + void **result); + +/** + * Type of child presence query function + */ +typedef int (*hubbub_tree_has_children)(void *ctx, void *node, bool *result); + +/** + * Type of form association function + */ +typedef int (*hubbub_tree_form_associate)(void *ctx, void *form, void *node); + +/** + * Type of attribute addition function + */ +typedef int (*hubbub_tree_add_attributes)(void *ctx, void *node, + const hubbub_attribute *attributes, uint32_t n_attributes); + +/** * Type of tree quirks mode notification function */ typedef int (*hubbub_tree_set_quirks_mode)(void *ctx, hubbub_quirks_mode mode); |