diff options
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 |