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 --- content/content.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 87dcfa226..4641571bd 100644 --- a/content/content.c +++ b/content/content.c @@ -860,14 +860,17 @@ void content_search_clear(struct hlcache_handle *h) } } - -void content_debug_dump(struct hlcache_handle *h, FILE *f) +/* exported interface documented in content/content.h */ +nserror content_debug_dump(struct hlcache_handle *h, FILE *f, enum content_debug op) { struct content *c = hlcache_handle_get_content(h); assert(c != 0); - if (c->handler->debug_dump != NULL) - c->handler->debug_dump(c, f); + if (c->handler->debug_dump == NULL) { + return NSERROR_NOT_IMPLEMENTED; + } + + return c->handler->debug_dump(c, f, op); } -- cgit v1.2.3