diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-29 01:54:01 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-29 01:54:01 +0000 |
commit | 150479490c65c731b68b9f23b6f4e92ab08ed93d (patch) | |
tree | a4afdceee58791863ac5ae829747071d04927bba /file.h | |
parent | f315a4b745e3c9aa13dacbb35105df274fa95849 (diff) | |
download | wireshark-150479490c65c731b68b9f23b6f4e92ab08ed93d.tar.gz wireshark-150479490c65c731b68b9f23b6f4e92ab08ed93d.tar.bz2 wireshark-150479490c65c731b68b9f23b6f4e92ab08ed93d.zip |
Move the callback for input available on the sync pipe from "file.c" to
"capture.c", along with the other code that deals with the sync pipe.
Close the sync pipe, and get rid of the temporary capture file, on
errors.
Split "tail_cap_file()" into routines to set up to read from the capture
file, to read a specified number of packets from it when told to do so
by the child process, and to read the rest of the capture file and
finish up the capture, to provide the code in "capture.c" the hooks it
needs.
Have a common routine to set the status bar to report the file name and
number of dropped packets, to use both when reading in a capture file in
its entirety all at once and when done with a "read it while the capture
is writing to it" live capture.
svn path=/trunk/; revision=1137
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.54 1999/11/25 18:02:07 gerald Exp $ + * $Id: file.h,v 1.55 1999/11/29 01:54:01 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -121,7 +121,9 @@ typedef struct _capture_file { int open_cap_file(char *, capture_file *); void close_cap_file(capture_file *, void *, guint); int read_cap_file(capture_file *); -int tail_cap_file(char *, capture_file *); +int start_tail_cap_file(char *, capture_file *); +int continue_tail_cap_file(capture_file *, int); +int finish_tail_cap_file(capture_file *); /* size_t read_frame_header(capture_file *); */ int filter_packets(capture_file *cf, gchar *dfilter); |