aboutsummaryrefslogtreecommitdiffstats
path: root/alert_box.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-11 01:23:25 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-11 01:23:25 +0000
commit727b913bbd2b41c6ece202f240f69e2f621833ac (patch)
treea51e826d510cce43db5779afb98d8e2a705da366 /alert_box.h
parentc7fd1b2b1357cf491eeb57d8313e5d33fd766094 (diff)
Add an "open_failure_alert_box()" routine to pop up an alert box for a
failed attempt to open/create a file. Fix one call to pass the right value for the "for_writing" flag. svn path=/trunk/; revision=10026
Diffstat (limited to 'alert_box.h')
-rw-r--r--alert_box.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/alert_box.h b/alert_box.h
index 5c35d1896a..249d6aaafa 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.1 2004/02/11 00:55:27 guy Exp $
+ * $Id: alert_box.h,v 1.2 2004/02/11 01:23:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -31,6 +31,15 @@ extern "C" {
#endif /* __cplusplus */
/*
+ * 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
+ * for reading.
+ */
+extern void open_failure_alert_box(const char *filename, int err,
+ gboolean for_writing);
+
+/*
* Alert box for an invalid display filter expression.
* Assumes "dfilter_error_msg" has been set by "dfilter_compile()" to the
* error message for the filter.