summaryrefslogtreecommitdiff
path: root/monkey/main.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-25 23:11:55 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-25 23:11:55 +0100
commitbf3ee089cb57765c48065423027eb4fffbe297f1 (patch)
tree2432a7705866c0773bc70ea3287f45534ec085e1 /monkey/main.c
parent638e07f026d85de0c01630217570d4148aaaced5 (diff)
downloadnetsurf-bf3ee089cb57765c48065423027eb4fffbe297f1.tar.gz
netsurf-bf3ee089cb57765c48065423027eb4fffbe297f1.tar.bz2
use the miscellaneous table warning entry
change all the frontends to provide the warning callback in the miscelaneous table instead of using the warn_user function. Changing all the warn_user callsites still requires completion.
Diffstat (limited to 'monkey/main.c')
-rw-r--r--monkey/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/monkey/main.c b/monkey/main.c
index f7d6609c5..7b38a3880 100644
--- a/monkey/main.c
+++ b/monkey/main.c
@@ -223,6 +223,13 @@ static nserror set_defaults(struct nsoption_s *defaults)
return NSERROR_OK;
}
+static nserror monkey_warn_user(const char *warning, const char *detail)
+{
+ fprintf(stderr, "WARN %s %s\n", warning, detail);
+ return NSERROR_OK;
+}
+
+
/**
* Ensures output logging stream is correctly configured
*/
@@ -236,6 +243,7 @@ static bool nslog_stream_configure(FILE *fptr)
static struct gui_misc_table monkey_misc_table = {
.schedule = monkey_schedule,
+ .warning = monkey_warn_user,
.quit = monkey_quit,
.launch_url = gui_launch_url,