summaryrefslogtreecommitdiff
path: root/src/core/element.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-09-24 23:26:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-09-24 23:26:04 +0000
commitcbfa1de186b10ca7fd192ca7d30e8466939f2a92 (patch)
tree341664962cc99a7ac74430bb57e8e9ad20016c20 /src/core/element.h
parenta7d63a9edf93e820e081c3488f3d21bdfbf25938 (diff)
downloadlibdom-cbfa1de186b10ca7fd192ca7d30e8466939f2a92.tar.gz
libdom-cbfa1de186b10ca7fd192ca7d30e8466939f2a92.tar.bz2
Move attributes field to struct dom_element as it doesn't apply to other node types.
svn path=/trunk/dom/; revision=3590
Diffstat (limited to 'src/core/element.h')
-rw-r--r--src/core/element.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/element.h b/src/core/element.h
index 2a79997..f51b9ae 100644
--- a/src/core/element.h
+++ b/src/core/element.h
@@ -8,10 +8,13 @@
#ifndef dom_internal_core_element_h_
#define dom_internal_core_element_h_
+#include <stdbool.h>
+
#include <dom/core/exceptions.h>
struct dom_document;
struct dom_element;
+struct dom_namednodemap;
struct dom_string;
dom_exception dom_element_create(struct dom_document *doc,
@@ -20,4 +23,9 @@ dom_exception dom_element_create(struct dom_document *doc,
void dom_element_destroy(struct dom_document *doc,
struct dom_element *element);
+dom_exception dom_element_get_attributes(struct dom_element *element,
+ struct dom_namednodemap **result);
+
+dom_exception dom_element_has_attributes(struct dom_element *element,
+ bool *result);
#endif