diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 16:03:45 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-20 16:03:45 +0100 |
commit | daf10f00a6c19ac279f53190bfaa39d04772809a (patch) | |
tree | 7d55924cb651a8131eac8320ce0760d3b03b9151 /content/content.c | |
parent | 400ce416234e37889e2f2410f86d115373f39c82 (diff) | |
download | netsurf-daf10f00a6c19ac279f53190bfaa39d04772809a.tar.gz netsurf-daf10f00a6c19ac279f53190bfaa39d04772809a.tar.bz2 |
API for content debug dump.
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c index 57d370848..b65e110ec 100644 --- a/content/content.c +++ b/content/content.c @@ -762,6 +762,16 @@ bool content_drop_file_at_point(struct hlcache_handle *h, } +void content_debug_dump(struct hlcache_handle *h, FILE *f) +{ + struct content *c = hlcache_handle_get_content(h); + assert(c != 0); + + if (c->handler->debug_dump != NULL) + c->handler->debug_dump(c, f); +} + + void content_add_error(struct content *c, const char *token, unsigned int line) { |