diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 23:52:56 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-05 23:52:56 +0000 |
commit | ac42344d05ec326f0063133498ec1c040e924db2 (patch) | |
tree | 4041bc41d72721a94dc573e5be3cb0f80988e004 /include/dom/core/document.h | |
parent | c9c2a632f38b736d6879caf00aa477ecf2e22dfb (diff) | |
download | libdom-ac42344d05ec326f0063133498ec1c040e924db2.tar.gz libdom-ac42344d05ec326f0063133498ec1c040e924db2.tar.bz2 |
Remove bootstrap infrastructure, and just make dom_implementation a stub.
We only support a single implementation, so all the registry and implementation list stuff is totally unnecesary and overcomplex
svn path=/trunk/dom/; revision=11017
Diffstat (limited to 'include/dom/core/document.h')
-rw-r--r-- | include/dom/core/document.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dom/core/document.h b/include/dom/core/document.h index 1fe9752..ebe82b8 100644 --- a/include/dom/core/document.h +++ b/include/dom/core/document.h @@ -14,6 +14,7 @@ #include <stdint.h> #include <dom/core/exceptions.h> +#include <dom/core/implementation.h> #include <dom/core/node.h> struct dom_attr; @@ -25,7 +26,6 @@ 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; @@ -43,7 +43,7 @@ typedef struct dom_document_vtable { struct dom_document_type **result); dom_exception (*dom_document_get_implementation)( struct dom_document *doc, - struct dom_implementation **result); + dom_implementation **result); dom_exception (*dom_document_get_document_element)( struct dom_document *doc, struct dom_element **result); dom_exception (*dom_document_create_element)(struct dom_document *doc, @@ -127,13 +127,13 @@ static inline dom_exception dom_document_get_doctype(struct dom_document *doc, (dom_document *) (d), (struct dom_document_type **) (r)) static inline dom_exception dom_document_get_implementation( - struct dom_document *doc, struct dom_implementation **result) + struct dom_document *doc, dom_implementation **result) { return ((dom_document_vtable *) ((dom_node *) doc)->vtable)-> dom_document_get_implementation(doc, result); } #define dom_document_get_implementation(d, r) dom_document_get_implementation(\ - (dom_document *) (d), (struct dom_implementation **) (r)) + (dom_document *) (d), (dom_implementation **) (r)) static inline dom_exception dom_document_get_document_element( struct dom_document *doc, struct dom_element **result) |