summaryrefslogtreecommitdiff
path: root/src/core/document_type.h
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-03-19 12:24:41 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-03-19 12:24:41 +0000
commit2d2b525d83419bffbd7dc32c5a046f6eb4d2943a (patch)
tree7bdb22df848030e364ef345550c06c980ae6bfed /src/core/document_type.h
parentf05c3c710a443641aab66cb46a4333cdc2683d03 (diff)
downloadlibdom-2d2b525d83419bffbd7dc32c5a046f6eb4d2943a.tar.gz
libdom-2d2b525d83419bffbd7dc32c5a046f6eb4d2943a.tar.bz2
Convert DocumentType to use vtable structure.
svn path=/trunk/dom/; revision=6804
Diffstat (limited to 'src/core/document_type.h')
-rw-r--r--src/core/document_type.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/core/document_type.h b/src/core/document_type.h
index 266a1b6..e38cf52 100644
--- a/src/core/document_type.h
+++ b/src/core/document_type.h
@@ -11,7 +11,34 @@
struct dom_document_type;
/* Destroy a document type */
-void dom_document_type_destroy(struct dom_document_type *doctype);
+void dom_document_type_destroy(struct dom_node_internal *doctypenode);
+
+/* The virtual functions of DocumentType */
+dom_exception _dom_document_type_get_name(struct dom_document_type *doc_type,
+ struct dom_string **result);
+dom_exception _dom_document_type_get_entities(
+ struct dom_document_type *doc_type,
+ struct dom_namednodemap **result);
+dom_exception _dom_document_type_get_notations(
+ struct dom_document_type *doc_type,
+ struct dom_namednodemap **result);
+dom_exception _dom_document_type_get_public_id(
+ struct dom_document_type *doc_type,
+ struct dom_string **result);
+dom_exception _dom_document_type_get_system_id(
+ struct dom_document_type *doc_type,
+ struct dom_string **result);
+dom_exception _dom_document_type_get_internal_subset(
+ struct dom_document_type *doc_type,
+ struct dom_string **result);
+
+#define DOM_DOCUMENT_TYPE_VTABLE \
+ _dom_document_type_get_name, \
+ _dom_document_type_get_entities, \
+ _dom_document_type_get_notations, \
+ _dom_document_type_get_public_id, \
+ _dom_document_type_get_system_id, \
+ _dom_document_type_get_internal_subset
#endif