diff options
author | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-11 11:17:23 +0000 |
---|---|---|
committer | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-11 11:17:23 +0000 |
commit | 399da01ae4eb5c5e3e9349bacc2063c946c3d4a1 (patch) | |
tree | 433c8bcde94fc7a6e6f2e5cbf23842a84db98146 /src/core/doc_fragment.h | |
parent | eec057c7437e19b59ca1e698ce548cb56ce37240 (diff) | |
download | libdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.gz libdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.bz2 |
Merge the branches/struggleyb/libdom-remain back to trunk.
svn path=/trunk/dom/; revision=9191
Diffstat (limited to 'src/core/doc_fragment.h')
-rw-r--r-- | src/core/doc_fragment.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/core/doc_fragment.h b/src/core/doc_fragment.h index 08e3422..9d3de76 100644 --- a/src/core/doc_fragment.h +++ b/src/core/doc_fragment.h @@ -13,12 +13,29 @@ struct dom_document_fragment; struct dom_document; struct dom_string; +struct lwc_string_s; -dom_exception dom_document_fragment_create(struct dom_document *doc, - struct dom_string *name, struct dom_string *value, +dom_exception _dom_document_fragment_create(struct dom_document *doc, + struct lwc_string_s *name, struct dom_string *value, struct dom_document_fragment **result); -void dom_document_fragment_destroy(struct dom_document *doc, +void _dom_document_fragment_destroy(struct dom_document *doc, struct dom_document_fragment *frag); +#define _dom_document_fragment_initialise _dom_node_initialise +#define _dom_document_fragment_finalise _dom_node_finalise + + +/* Following comes the protected vtable */ +void _dom_df_destroy(struct dom_node_internal *node); +dom_exception _dom_df_alloc(struct dom_document *doc, + struct dom_node_internal *n, struct dom_node_internal **ret); +dom_exception _dom_df_copy(struct dom_node_internal *new, + struct dom_node_internal *old); + +#define DOM_DF_PROTECT_VTABLE \ + _dom_df_destroy, \ + _dom_df_alloc, \ + _dom_df_copy + #endif |