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.h | |
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.h')
-rw-r--r-- | amiga/misc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/amiga/misc.h b/amiga/misc.h index 2544c7731..e8f58fad8 100644 --- a/amiga/misc.h +++ b/amiga/misc.h @@ -18,11 +18,24 @@ #ifndef AMIGA_MISC_H #define AMIGA_MISC_H + #include <exec/types.h> +#include "utils/errors.h" + extern struct gui_file_table *amiga_file_table; struct Window; +/** + * 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 amiga_warn_user(const char *warning, const char *detail); + void *ami_misc_allocvec_clear(int size, UBYTE value); /* Itempool cross-compatibility */ |