summaryrefslogtreecommitdiff
path: root/src/core/doc_fragment.h
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-08-11 11:17:23 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-08-11 11:17:23 +0000
commitaba54ed61e31df318abdfa165f971a11ce084608 (patch)
tree433c8bcde94fc7a6e6f2e5cbf23842a84db98146 /src/core/doc_fragment.h
parent4a8212d783b6d848ac5e23b2a5151caf19ce0a4f (diff)
downloadlibdom-aba54ed61e31df318abdfa165f971a11ce084608.tar.gz
libdom-aba54ed61e31df318abdfa165f971a11ce084608.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.h23
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