From bf3ee089cb57765c48065423027eb4fffbe297f1 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 25 Apr 2016 23:11:55 +0100 Subject: 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. --- amiga/misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'amiga/misc.c') 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) -- cgit v1.2.3