summaryrefslogtreecommitdiff
path: root/include/netsurf
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 09:46:45 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 09:49:11 +0100
commitd24017474174614c630fbfde1c53415cf1a6fdfa (patch)
tree8e5a2096273018d1fffe3a0b5e800152f570de8d /include/netsurf
parentd27027d4ba21921365737e358b3d26e2159488c3 (diff)
downloadnetsurf-d24017474174614c630fbfde1c53415cf1a6fdfa.tar.gz
netsurf-d24017474174614c630fbfde1c53415cf1a6fdfa.tar.bz2
Add console_log to gui tables
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'include/netsurf')
-rw-r--r--include/netsurf/window.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/netsurf/window.h b/include/netsurf/window.h
index 53d9b30f2..8fc7c7be0 100644
--- a/include/netsurf/window.h
+++ b/include/netsurf/window.h
@@ -26,6 +26,8 @@
#ifndef NETSURF_WINDOW_H
#define NETSURF_WINDOW_H
+#include "netsurf/console.h"
+
typedef enum gui_save_type {
GUI_SAVE_SOURCE,
GUI_SAVE_DRAW,
@@ -341,6 +343,23 @@ struct gui_window_table {
* \param gw The gui window to start selection in.
*/
void (*start_selection)(struct gui_window *gw);
+
+ /**
+ * console logging happening.
+ *
+ * See \ref browser_window_console_log
+ *
+ * \param gw The gui window receiving the logging.
+ * \param src The source of the logging message
+ * \param msg The text of the logging message
+ * \param msglen The length of the text of the logging message
+ * \param flags Flags associated with the logging.
+ */
+ void (*console_log)(struct gui_window *gw,
+ browser_window_console_source src,
+ const char *msg,
+ size_t msglen,
+ browser_window_console_flags flags);
};
#endif