summaryrefslogtreecommitdiff
path: root/utils/domutils.h
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-11-09 23:22:19 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-11-09 23:23:04 +0000
commit4d58ed656248d975e0394fbfec66215a45e74dfa (patch)
tree5d554b8481badddabd7f9667961ec481bd655091 /utils/domutils.h
parent79bd44fcb4bb88c7fe23ef0c7fb62786eb340ca5 (diff)
downloadnetsurf-4d58ed656248d975e0394fbfec66215a45e74dfa.tar.gz
netsurf-4d58ed656248d975e0394fbfec66215a45e74dfa.tar.bz2
Port hotlist load/save to libdom.
Diffstat (limited to 'utils/domutils.h')
-rw-r--r--utils/domutils.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/utils/domutils.h b/utils/domutils.h
index ecdf2bc4a..6dd62fc8a 100644
--- a/utils/domutils.h
+++ b/utils/domutils.h
@@ -19,6 +19,19 @@
#ifndef _NETSURF_UTILS_DOMUTILS_H_
#define _NETSURF_UTILS_DOMUTILS_H_
-dom_node *find_first_named_dom_element(dom_node *parent, lwc_string *element_name);
+#include <stdbool.h>
+
+#include <dom/dom.h>
+
+typedef bool (*domutils_iterate_cb)(dom_node *node, void *ctx);
+
+dom_node *find_first_named_dom_element(dom_node *parent,
+ lwc_string *element_name);
+
+void domutils_iterate_child_elements(dom_node *parent,
+ domutils_iterate_cb cb, void *ctx);
+
+dom_document *domutils_parse_file(const char *filename,
+ const char *encoding);
#endif