diff options
Diffstat (limited to 'src/core/doc_fragment.h')
-rw-r--r-- | src/core/doc_fragment.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/core/doc_fragment.h b/src/core/doc_fragment.h index b2c3e71..944516f 100644 --- a/src/core/doc_fragment.h +++ b/src/core/doc_fragment.h @@ -9,32 +9,24 @@ #define dom_internal_core_documentfragment_h_ #include <dom/core/exceptions.h> +#include <dom/core/doc_fragment.h> -struct dom_document_fragment; -struct dom_document; -struct lwc_string_s; +dom_exception _dom_document_fragment_create(dom_document *doc, + dom_string *name, dom_string *value, + dom_document_fragment **result); -dom_exception _dom_document_fragment_create(struct dom_document *doc, - struct lwc_string_s *name, dom_string *value, - struct dom_document_fragment **result); - -void _dom_document_fragment_destroy(struct dom_document *doc, - struct dom_document_fragment *frag); +void _dom_document_fragment_destroy(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); +void _dom_df_destroy(dom_node_internal *node); +dom_exception _dom_df_copy(dom_node_internal *old, dom_node_internal **copy); #define DOM_DF_PROTECT_VTABLE \ _dom_df_destroy, \ - _dom_df_alloc, \ _dom_df_copy #endif |