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. --- atari/misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'atari/misc.c') 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) -- cgit v1.2.3