summaryrefslogtreecommitdiff
path: root/content/content.h
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.h
parentc4d1ece421b3c7fb5f0b13c042d124671734afe2 (diff)
downloadnetsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.gz
netsurf-af16c38d2dbe2decfc45015bd4ee020cb52c608b.tar.bz2
fix DOM tree dump debug
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index a2d07926c..752370034 100644
--- a/content/content.h
+++ b/content/content.h
@@ -87,6 +87,12 @@ typedef enum {
CONTENT_MSG_GADGETCLICK/**< A gadget has been clicked on (mainly for file) */
} content_msg;
+/** Debugging dump operations */
+enum content_debug {
+ CONTENT_DEBUG_RENDER, /** Debug the contents rendering. */
+ CONTENT_DEBUG_DOM /** Debug teh contents Document Object. */
+};
+
/** RFC5988 metadata link */
struct content_rfc5988_link {
struct content_rfc5988_link *next; /**< next rfc5988_link in list */
@@ -271,7 +277,15 @@ void content_search(struct hlcache_handle *h, void *context,
search_flags_t flags, const char *string);
void content_search_clear(struct hlcache_handle *h);
-void content_debug_dump(struct hlcache_handle *h, FILE *f);
+/**
+ * Dump debug information to file.
+ *
+ * \param h content handle to debug.
+ * \param f File to write output to.
+ * \param op Debug operation type.
+ */
+nserror content_debug_dump(struct hlcache_handle *h, FILE *f, enum content_debug op);
+
struct content_rfc5988_link *content_find_rfc5988_link(struct hlcache_handle *c,
lwc_string *rel);