diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-25 23:11:55 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-25 23:11:55 +0100 |
commit | bf3ee089cb57765c48065423027eb4fffbe297f1 (patch) | |
tree | 2432a7705866c0773bc70ea3287f45534ec085e1 /atari/misc.c | |
parent | 638e07f026d85de0c01630217570d4148aaaced5 (diff) | |
download | netsurf-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 'atari/misc.c')
-rw-r--r-- | atari/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/atari/misc.c b/atari/misc.c index b46afb5d0..8c940918b 100644 --- a/atari/misc.c +++ b/atari/misc.c @@ -53,7 +53,8 @@ struct is_process_running_callback_data { bool found; }; -void warn_user(const char *warning, const char *detail) +/* exported function documented in atari/misc/h */ +nserror atari_warn_user(const char *warning, const char *detail) { size_t len = 1 + ((warning != NULL) ? strlen(messages_get(warning)) : 0) + ((detail != 0) ? strlen(detail) : 0); @@ -62,6 +63,8 @@ void warn_user(const char *warning, const char *detail) printf("%s\n", message); gemtk_msg_box_show(GEMTK_MSG_BOX_ALERT, message); + + return NSERROR_OK; } void die(const char *error) |