summaryrefslogtreecommitdiff
path: root/utils/libdom.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-12-06 18:04:43 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-12-06 18:04:43 +0000
commit646aed64ff07fa356f8aef034e77792cf634b053 (patch)
tree42bb4c0e591efc1d6244cc40a503f5e1937013ba /utils/libdom.h
parent61723e01c1beed8591d877c92035b65c448f46df (diff)
downloadnetsurf-646aed64ff07fa356f8aef034e77792cf634b053.tar.gz
netsurf-646aed64ff07fa356f8aef034e77792cf634b053.tar.bz2
change to parameterised parser binding creation
Diffstat (limited to 'utils/libdom.h')
-rw-r--r--utils/libdom.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/utils/libdom.h b/utils/libdom.h
index d79c92d81..36caf01bf 100644
--- a/utils/libdom.h
+++ b/utils/libdom.h
@@ -28,7 +28,11 @@
#include <dom/dom.h>
-/* depth-first walk the dom calling callback for each element
+#include <dom/bindings/hubbub/parser.h>
+#include <dom/bindings/hubbub/errors.h>
+
+/**
+ * depth-first walk the dom calling callback for each element
*
* \param root the dom node to use as the root of the tree walk
* \return true if all nodes were examined, false if the callback terminated
@@ -65,4 +69,12 @@ void libdom_iterate_child_elements(dom_node *parent,
nserror libdom_parse_file(const char *filename, const char *encoding,
dom_document **doc);
+/**
+ * Convert libdom hubbub binding errors to nserrors.
+ *
+ * \param error The hubbub binding error to convert
+ * \return The appropriate nserror
+ */
+nserror libdom_hubbub_error_to_nserror(dom_hubbub_error error);
+
#endif