summaryrefslogtreecommitdiff
path: root/src/core/document.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-10 23:25:18 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-10 23:25:18 +0000
commit83eff3f08b8a42d89a6eae8ffb7a373016108d76 (patch)
treeb4c493587d97605e69be27b7cd7850ef3bb2a3ac /src/core/document.h
parentfeed6ef8c3bee2354db4c778dd61ad7e756968e8 (diff)
downloadlibdom-83eff3f08b8a42d89a6eae8ffb7a373016108d76.tar.gz
libdom-83eff3f08b8a42d89a6eae8ffb7a373016108d76.tar.bz2
Add NamedNodeMap.
Minor fix for NodeList unref function; ensure it unrefs the owner document after it has finished using it. svn path=/trunk/dom/; revision=3395
Diffstat (limited to 'src/core/document.h')
-rw-r--r--src/core/document.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/document.h b/src/core/document.h
index a51d1e1..236ab4a 100644
--- a/src/core/document.h
+++ b/src/core/document.h
@@ -11,7 +11,10 @@
#include <inttypes.h>
#include <stddef.h>
+#include "core/namednodemap.h"
+
struct dom_document;
+struct dom_namednodemap;
struct dom_node;
struct dom_nodelist;
struct dom_string;
@@ -27,9 +30,16 @@ dom_exception dom_document_get_nodelist(struct dom_document *doc,
struct dom_node *root, struct dom_string *tagname,
struct dom_string *namespace, struct dom_string *localname,
struct dom_nodelist **list);
-
/* Remove a nodelist */
void dom_document_remove_nodelist(struct dom_document *doc,
struct dom_nodelist *list);
+/* Get a namednodemap, creating one if necessary */
+dom_exception dom_document_get_namednodemap(struct dom_document *doc,
+ struct dom_node *root, dom_namednodemap_type type,
+ struct dom_namednodemap **map);
+/* Remove a namednodemap */
+void dom_document_remove_namednodemap(struct dom_document *doc,
+ struct dom_namednodemap *map);
+
#endif