From 014fb9db8dab9c5e93ce949318e430edbf6fd8f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 20 Aug 2012 16:05:30 +0100 Subject: Function for front ends to get debug dump from bw. --- desktop/browser.c | 7 +++++++ desktop/browser.h | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/desktop/browser.c b/desktop/browser.c index a721d7358..a33bbff25 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -648,6 +648,13 @@ bool browser_window_drop_file_at_point(struct browser_window *bw, return false; } +/* exported interface, documented in browser.h */ +void browser_window_debug_dump(struct browser_window *bw, FILE *f) +{ + if (bw->current_content != NULL) + content_debug_dump(bw->current_content, f); +} + /** * Create and open a new root browser window with the given page. diff --git a/desktop/browser.h b/desktop/browser.h index b776b276f..cdf8395ff 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -457,6 +457,15 @@ void browser_window_set_selection(struct browser_window *bw, struct selection *browser_window_get_selection(struct browser_window *bw); +/** + * Dump debug info concerning the browser window's contents to file + * + * \param bw The browser window + * \param bw The file to dump to + */ +void browser_window_debug_dump(struct browser_window *bw, FILE *f); + + /* In platform specific hotlist.c. */ void hotlist_visited(struct hlcache_handle *c); -- cgit v1.2.3