aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-15 00:26:11 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-15 00:26:11 +0000
commitea6a522b28b69794233e9700cc62d5277281e5e9 (patch)
treebdfb8964f1f6ea6f3b429822496ee249fb0fe027 /file.h
parent9e58014e7facc8144b787199e0caa4b975ac0cb2 (diff)
Split "load_cap_file()" into "open_cap_file()" and "read_cap_file()".
The former, which used to be called by "load_cap_file()", now just opens the file and, if the open succeeds, closes any capture file we previously had open, reinitializes any protocols that need reinitialization, and saves information about the new capture file in the "capture_file" structure to which it was passed a pointer. The latter reads the file already opened by "read_cap_file()". For "File/Open", call "open_cap_file()" before dismissing the file selection box; if it fails, "open_cap_file()" will have popped up a message box complaining about it - just return, leaving the file selection box open so the user can, after dismissing the message box, either try again with a different file name, or dismiss the file selection box. (Other file selection boxes should be made to work the same way.) If "open_cap_file()" succeeds, dismiss the file selection box, and read the capture file in. svn path=/trunk/; revision=492
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 c6a0b66355..0469fc5972 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.32 1999/08/13 23:47:42 gram Exp $
+ * $Id: file.h,v 1.33 1999/08/15 00:26:11 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -106,7 +106,7 @@ typedef struct _capture_file {
int open_cap_file(char *, capture_file *);
void close_cap_file(capture_file *, void *, guint);
-int load_cap_file(char *, char *, capture_file *);
+int read_cap_file(char *, char *, capture_file *);
int tail_cap_file(char *, capture_file *);
/* size_t read_frame_header(capture_file *); */