summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-08-04 00:36:14 +0100
committerVincent Sanders <vince@kyllikki.org>2014-08-04 00:37:21 +0100
commitaf16c38d2dbe2decfc45015bd4ee020cb52c608b (patch)
treede33b2d3448dd65272c6df813dfb217d5f963d27 /content/content.c
parentc4d1ece421b3c7fb5f0b13c042d124671734afe2 (diff)
downloadnetsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.gz
netsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.bz2
fix DOM tree dump debug
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c11
1 files changed, 7 insertions, 4 deletions
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);
}