summaryrefslogtreecommitdiff
path: root/src/core/document_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/document_type.h')
-rw-r--r--src/core/document_type.h40
1 files changed, 16 insertions, 24 deletions
diff --git a/src/core/document_type.h b/src/core/document_type.h
index 7fcac8e..e9b1dd5 100644
--- a/src/core/document_type.h
+++ b/src/core/document_type.h
@@ -8,39 +8,39 @@
#ifndef dom_internal_core_document_type_h_
#define dom_internal_core_document_type_h_
-struct dom_document_type;
-struct dom_resource_mgr;
+#include <dom/core/document_type.h>
+
+struct dom_namednodemap;
/* Create a DOM document type */
dom_exception _dom_document_type_create(dom_string *qname,
dom_string *public_id,
dom_string *system_id,
- dom_alloc alloc, void *pw,
- struct dom_document_type **doctype);
+ dom_document_type **doctype);
/* Destroy a document type */
-void _dom_document_type_destroy(struct dom_node_internal *doctypenode);
-dom_exception _dom_document_type_initialise(struct dom_document_type *doctype,
+void _dom_document_type_destroy(dom_node_internal *doctypenode);
+dom_exception _dom_document_type_initialise(dom_document_type *doctype,
dom_string *qname, dom_string *public_id,
- dom_string *system_id, dom_alloc alloc, void *pw);
-void _dom_document_type_finalise(struct dom_document_type *doctype);
+ dom_string *system_id);
+void _dom_document_type_finalise(dom_document_type *doctype);
/* The virtual functions of DocumentType */
-dom_exception _dom_document_type_get_name(struct dom_document_type *doc_type,
+dom_exception _dom_document_type_get_name(dom_document_type *doc_type,
dom_string **result);
dom_exception _dom_document_type_get_entities(
- struct dom_document_type *doc_type,
+ dom_document_type *doc_type,
struct dom_namednodemap **result);
dom_exception _dom_document_type_get_notations(
- struct dom_document_type *doc_type,
+ dom_document_type *doc_type,
struct dom_namednodemap **result);
dom_exception _dom_document_type_get_public_id(
- struct dom_document_type *doc_type,
+ dom_document_type *doc_type,
dom_string **result);
dom_exception _dom_document_type_get_system_id(
- struct dom_document_type *doc_type,
+ dom_document_type *doc_type,
dom_string **result);
dom_exception _dom_document_type_get_internal_subset(
- struct dom_document_type *doc_type,
+ dom_document_type *doc_type,
dom_string **result);
#define DOM_DOCUMENT_TYPE_VTABLE \
@@ -52,19 +52,11 @@ dom_exception _dom_document_type_get_internal_subset(
_dom_document_type_get_internal_subset
/* Following comes the protected vtable */
-void _dom_dt_destroy(struct dom_node_internal *node);
-dom_exception _dom_dt_alloc(struct dom_document *doc,
- struct dom_node_internal *n, struct dom_node_internal **ret);
-dom_exception _dom_dt_copy(struct dom_node_internal *new,
- struct dom_node_internal *old);
+void _dom_dt_destroy(dom_node_internal *node);
+dom_exception _dom_dt_copy(dom_node_internal *old, dom_node_internal **copy);
#define DOM_DT_PROTECT_VTABLE \
_dom_dt_destroy, \
- _dom_dt_alloc, \
_dom_dt_copy
-/* Helper functions */
-void _dom_document_type_get_resource_mgr(
- struct dom_document_type *dt, struct dom_resource_mgr *rm);
-
#endif