From af16c38d2dbe2decfc45015bd4ee020cb52c608b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 4 Aug 2014 00:36:14 +0100 Subject: fix DOM tree dump debug --- utils/libdom.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils/libdom.h') diff --git a/utils/libdom.h b/utils/libdom.h index dc8eacd12..4f78cd2e9 100644 --- a/utils/libdom.h +++ b/utils/libdom.h @@ -25,6 +25,7 @@ #define NETSURF_UTILS_LIBDOM_H_ #include +#include #include @@ -77,4 +78,13 @@ nserror libdom_parse_file(const char *filename, const char *encoding, */ nserror libdom_hubbub_error_to_nserror(dom_hubbub_error error); +/** + * Walk though a DOM (sub)tree, in depth first order, printing DOM structure. + * + * \param node The root node to start from. + * \param f The file to write output into. + * \param depth The depth of 'node' in the (sub)tree. + */ +nserror libdom_dump_structure(dom_node *node, FILE *f, int depth); + #endif -- cgit v1.2.3