summaryrefslogtreecommitdiff
path: root/atari/misc.h
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 /atari/misc.h
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 'atari/misc.h')
-rw-r--r--atari/misc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/atari/misc.h b/atari/misc.h
index a0e53d11e..0ccaaa7a8 100644
--- a/atari/misc.h
+++ b/atari/misc.h
@@ -89,4 +89,14 @@ long nkc_to_input_key(short nkc, long * ucs4_out);
*/
void die(const char * const error) __attribute__ ((noreturn));
+/**
+ * Warn the user of an event.
+ *
+ * \param[in] message A warning looked up in the message translation table
+ * \param[in] detail Additional text to be displayed or NULL.
+ * \return NSERROR_OK on success or error code if there was a
+ * faliure displaying the message to the user.
+ */
+nserror atari_warn_user(const char *warning, const char *detail);
+
#endif