summaryrefslogtreecommitdiff
path: root/include/dom
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-28 14:34:59 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-28 14:34:59 +0000
commitf690243cd9e852396aecc2c4d054e1e2478aff09 (patch)
treed3fe522992dec910758c2b86d0d02ec9c2d005a9 /include/dom
parent5b61881600d30941e4a4b53160416f80b11bf7b3 (diff)
downloadlibdom-f690243cd9e852396aecc2c4d054e1e2478aff09.tar.gz
libdom-f690243cd9e852396aecc2c4d054e1e2478aff09.tar.bz2
Sort out somewhat messy object construction.
We now have explicit types for all classes (rather than using the parent class for those which inherit but add no extra data content). svn path=/trunk/dom/; revision=3465
Diffstat (limited to 'include/dom')
-rw-r--r--include/dom/core/document.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/dom/core/document.h b/include/dom/core/document.h
index 6d79d28..cce8e4b 100644
--- a/include/dom/core/document.h
+++ b/include/dom/core/document.h
@@ -13,14 +13,19 @@
#include <dom/core/exceptions.h>
struct dom_attr;
+struct dom_cdata_section;
struct dom_characterdata;
+struct dom_comment;
struct dom_configuration;
struct dom_document;
+struct dom_document_fragment;
struct dom_document_type;
struct dom_element;
+struct dom_entity_reference;
struct dom_implementation;
struct dom_node;
struct dom_nodelist;
+struct dom_processing_instruction;
struct dom_string;
struct dom_text;
@@ -33,20 +38,22 @@ dom_exception dom_document_get_document_element(struct dom_document *doc,
dom_exception dom_document_create_element(struct dom_document *doc,
struct dom_string *tag_name, struct dom_element **result);
dom_exception dom_document_create_document_fragment(struct dom_document *doc,
- struct dom_node **result);
+ struct dom_document_fragment **result);
dom_exception dom_document_create_text_node(struct dom_document *doc,
struct dom_string *data, struct dom_text **result);
dom_exception dom_document_create_comment(struct dom_document *doc,
- struct dom_string *data, struct dom_characterdata **result);
+ struct dom_string *data, struct dom_comment **result);
dom_exception dom_document_create_cdata_section(struct dom_document *doc,
- struct dom_string *data, struct dom_text **result);
+ struct dom_string *data, struct dom_cdata_section **result);
dom_exception dom_document_create_processing_instruction(
struct dom_document *doc, struct dom_string *target,
- struct dom_string *data, struct dom_node **result);
+ struct dom_string *data,
+ struct dom_processing_instruction **result);
dom_exception dom_document_create_attribute(struct dom_document *doc,
struct dom_string *name, struct dom_attr **result);
dom_exception dom_document_create_entity_reference(struct dom_document *doc,
- struct dom_string *name, struct dom_node **result);
+ struct dom_string *name,
+ struct dom_entity_reference **result);
dom_exception dom_document_get_elements_by_tag_name(struct dom_document *doc,
struct dom_string *tagname, struct dom_nodelist **result);
dom_exception dom_document_import_node(struct dom_document *doc,