From d209115ba38e1f5082ecdf702782da0f09a727d2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 16 Apr 2004 23:17:13 +0000 Subject: Add a "report_failure()" routine to allow dissectors to report arbitrary errors to the user. Use that, rather than "g_warning()", in the Diameter dissector to report errors reading the dictionary. Make the format argument to "simple_dialog()" a "const" pointer. Fix up the read-error message in Tethereal to end with a newline. If a simple dialog is requested before the main window or the capture-control window is popped up, queue it up and pop the queued messages up once the main or capture-control window is displayed. svn path=/trunk/; revision=10616 --- alert_box.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'alert_box.h') diff --git a/alert_box.h b/alert_box.h index 807f1106f0..fbe4b1c463 100644 --- a/alert_box.h +++ b/alert_box.h @@ -2,7 +2,7 @@ * Routines to put up various "standard" alert boxes used in multiple * places * - * $Id: alert_box.h,v 1.4 2004/03/23 21:19:55 guy Exp $ + * $Id: alert_box.h,v 1.5 2004/04/16 23:16:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -30,6 +30,11 @@ extern "C" { #endif /* __cplusplus */ +/* + * Alert box for general errors. + */ +extern void failure_alert_box(const char *msg_format, va_list ap); + /* * Alert box for a failed attempt to open or create a file. * "err" is assumed to be a UNIX-style errno; "for_writing" is TRUE if -- cgit v1.2.3