aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-07-20 05:10:02 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-07-20 05:10:02 +0000
commit65e6c0960bb95942b2e3ea6319a44a08ef8d7153 (patch)
tree5dafc8e862aa2f8d98ffaa14e89d092df38ffa85 /file.h
parentac3b35c3d4c88f50b39c4f7ec7678b6902f387ee (diff)
Use ESD_TYPE_CRIT for most errors (the model used by various GUIs seems
to use "warning" dialog boxes only to warn the user "if you do that, bad things may happen" *and* to offer them the option either to drive on or quit, so perhaps ESD_TYPE_CRIT should be used for all errors). However, put "Ethereal: Error" rather than "Ethereal: Critical" in the title bar, in the hopes that it'll make it clearer that Something Bad Happened. If the user specifies that captures should be saved to a user-specified file rather than a temporary file, report errors trying to create that file with "file_open_error_message()". Make the "for_writing" argument to "file_open_error_message()" a "gboolean", as it's either TRUE (if the file is being opened for writing) or FALSE (if it's being opened for reading). Report EISDIR as "XXX is a directory (folder), not a file.". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2143 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.h')
-rw-r--r--file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.h b/file.h
index 72b6c87bd2..c8439a83c8 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.71 2000/07/09 03:29:27 guy Exp $
+ * $Id: file.h,v 1.72 2000/07/20 05:09:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -161,7 +161,7 @@ int file_mv(char *from, char *to);
/* Copies a file. Returns 0 on failure, 1 on success */
int file_cp(char *from, char *to);
-char *file_open_error_message(int, int);
+char *file_open_error_message(int, gboolean);
char *file_read_error_message(int);
char *file_write_error_message(int);