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 /utils/utils.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 'utils/utils.c')
-rw-r--r-- | utils/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/utils.c b/utils/utils.c index 1509a6b09..22af9d6fa 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -32,6 +32,12 @@ #include <errno.h> #include <curl/curl.h> +/* required for depricated warn_user interface */ +#include <stdbool.h> +#include "utils/errors.h" +#include "desktop/gui_misc.h" +#include "desktop/gui_internal.h" + #include "utils/config.h" #include "utils/log.h" #include "utils/messages.h" @@ -575,3 +581,9 @@ nserror nsc_strntimet(const char *str, size_t size, time_t *timep) return NSERROR_OK; } + +/* exported interface documented in utils/utils.h */ +void warn_user(const char *message, const char *detail) +{ + guit->misc->warning(message, detail); +} |