diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-08-04 00:36:14 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-08-04 00:37:21 +0100 |
commit | af16c38d2dbe2decfc45015bd4ee020cb52c608b (patch) | |
tree | de33b2d3448dd65272c6df813dfb217d5f963d27 /utils/libdom.h | |
parent | c4d1ece421b3c7fb5f0b13c042d124671734afe2 (diff) | |
download | netsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.gz netsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.bz2 |
fix DOM tree dump debug
Diffstat (limited to 'utils/libdom.h')
-rw-r--r-- | utils/libdom.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <stdbool.h> +#include <stdio.h> #include <dom/dom.h> @@ -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 |