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 /amiga/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 'amiga/misc.c')
-rwxr-xr-x | amiga/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/misc.c b/amiga/misc.c index dc87ae994..8618fd8b2 100755 --- a/amiga/misc.c +++ b/amiga/misc.c @@ -126,7 +126,8 @@ void ami_misc_fatal_error(const char *message) ami_misc_req(message, TDRIMAGE_ERROR); } -void warn_user(const char *warning, const char *detail) +/* exported interface documented in amiga/misc.h */ +nserror amiga_warn_user(const char *warning, const char *detail) { char *utf8warning = ami_utf8_easy(messages_get(warning)); STRPTR bodytext = ASPrintf("\33b%s\33n\n%s", @@ -136,6 +137,8 @@ void warn_user(const char *warning, const char *detail) if(bodytext) FreeVec(bodytext); if(utf8warning) free(utf8warning); + + return NSERROR_OK; } int32 ami_warn_user_multi(const char *body, const char *opt1, const char *opt2, struct Window *win) |