diff options
Diffstat (limited to 'gtk/viewdata.h')
-rw-r--r-- | gtk/viewdata.h | 12 |
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 |