diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-16 23:17:13 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-04-16 23:17:13 +0000 |
commit | 819e1a91838254c2a1c599b00adb43b6df85b23d (patch) | |
tree | 16229621c009c052580c6152892a945af94e5bba /alert_box.h | |
parent | 45d6278e92b27bacfda94edad8849f4caa827e81 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10616 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'alert_box.h')
-rw-r--r-- | alert_box.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <gerald@ethereal.com> @@ -31,6 +31,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 * the file is being opened for writing and FALSE if it's being opened |