summaryrefslogtreecommitdiff
path: root/src/core/comment.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
commit399da01ae4eb5c5e3e9349bacc2063c946c3d4a1 (patch)
tree433c8bcde94fc7a6e6f2e5cbf23842a84db98146 /src/core/comment.h
parenteec057c7437e19b59ca1e698ce548cb56ce37240 (diff)
downloadlibdom-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/comment.h')
-rw-r--r--src/core/comment.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/core/comment.h b/src/core/comment.h
index 38bb448..ef8791f 100644
--- a/src/core/comment.h
+++ b/src/core/comment.h
@@ -9,16 +9,33 @@
#define dom_internal_core_comment_h_
#include <dom/core/exceptions.h>
+#include <dom/core/comment.h>
struct dom_comment;
struct dom_document;
struct dom_string;
+struct lwc_string_s;
-dom_exception dom_comment_create(struct dom_document *doc,
- struct dom_string *name, struct dom_string *value,
+dom_exception _dom_comment_create(struct dom_document *doc,
+ struct lwc_string_s *name, struct dom_string *value,
struct dom_comment **result);
-void dom_comment_destroy(struct dom_document *doc,
+#define _dom_comment_initialise _dom_characterdata_initialise
+#define _dom_comment_finalise _dom_characterdata_finalise
+
+void _dom_comment_destroy(struct dom_document *doc,
struct dom_comment *comment);
+/* Following comes the protected vtable */
+void __dom_comment_destroy(struct dom_node_internal *node);
+dom_exception _dom_comment_alloc(struct dom_document *doc,
+ struct dom_node_internal *n, struct dom_node_internal **ret);
+dom_exception _dom_comment_copy(struct dom_node_internal *new,
+ struct dom_node_internal *old);
+
+#define DOM_COMMENT_PROTECT_VTABLE \
+ __dom_comment_destroy, \
+ _dom_comment_alloc, \
+ _dom_comment_copy
+
#endif