summaryrefslogtreecommitdiff
path: root/gtk/viewdata.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-08-03 10:12:18 +0100
committerVincent Sanders <vince@kyllikki.org>2014-08-04 00:37:21 +0100
commitc4d1ece421b3c7fb5f0b13c042d124671734afe2 (patch)
treeb1d2a29cbaccfe6e3ac78109d4447c6c5ee7927e /gtk/viewdata.h
parent2353790a4519c39976f24c90ff64b4ecb9833823 (diff)
downloadnetsurf-c4d1ece421b3c7fb5f0b13c042d124671734afe2.tar.gz
netsurf-c4d1ece421b3c7fb5f0b13c042d124671734afe2.tar.bz2
extend viewdata to files and use it for box tree dump
Diffstat (limited to 'gtk/viewdata.h')
-rw-r--r--gtk/viewdata.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/viewdata.h b/gtk/viewdata.h
index 020603d6c..1767b4821 100644
--- a/gtk/viewdata.h
+++ b/gtk/viewdata.h
@@ -33,4 +33,16 @@
*/
nserror nsgtk_viewdata(const char *title, const char *filename, char *data, size_t data_size);
+/**
+ * Display file to a user.
+ *
+ * The file is interpreted as utf-8 encoded text and will be presented
+ * in a window, a tab or an editor as per the user configuration.
+ *
+ * \param title The title of the data being displayed.
+ * \param leafname The suggested leafname to be used.
+ * \param filename The filename of the data to be viewed.
+ */
+nserror nsgtk_viewfile(const char *title, const char *leafname, const char *filename);
+
#endif