summaryrefslogtreecommitdiff
path: root/windows/gui.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-27 22:41:59 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-27 22:41:59 +0100
commite44bd09ac3a28823d9947c54949d115619003fe4 (patch)
tree66e3efcd35046d44c161fddabf5f7cb880b16424 /windows/gui.h
parent68938664411ac2ee82e39e11fe855a6cd1b32c7c (diff)
downloadnetsurf-e44bd09ac3a28823d9947c54949d115619003fe4.tar.gz
netsurf-e44bd09ac3a28823d9947c54949d115619003fe4.tar.bz2
update windows frontend to not use depricated warn_user API
Diffstat (limited to 'windows/gui.h')
-rw-r--r--windows/gui.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/windows/gui.h b/windows/gui.h
index f72cb2cc2..4c3f360b1 100644
--- a/windows/gui.h
+++ b/windows/gui.h
@@ -25,6 +25,8 @@ struct gui_clipboard_table *win32_clipboard_table;
extern HINSTANCE hInstance;
+extern char *options_file_location;
+
/* bounding box */
typedef struct bbox_s {
int x0;
@@ -33,19 +35,24 @@ typedef struct bbox_s {
int y1;
} bbox_t;
-
-
-extern char *options_file_location;
-
-
-
-
/**
* Run the win32 message loop with scheduling
*/
void win32_run(void);
-/** cause the main message loop to exit */
+/**
+ * cause the main message loop to exit
+ */
void win32_set_quit(bool q);
+/**
+ * Warn the user of an event.
+ *
+ * \param[in] message A warning looked up in the message translation table
+ * \param[in] detail Additional text to be displayed or NULL.
+ * \return NSERROR_OK on success or error code if there was a
+ * faliure displaying the message to the user.
+ */
+nserror win32_warning(const char *warning, const char *detail);
+
#endif