diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-08-19 19:40:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-08-19 19:40:00 +0000 |
commit | 38ec1644e68721d6b5afb84dce1684b943b1aee0 (patch) | |
tree | 8ffe4f642463b43885354f4dd755e59b4daf3823 /merge.h | |
parent | 06823cdce8a0e63cf888c449a1b37071d622f1c3 (diff) | |
download | wireshark-38ec1644e68721d6b5afb84dce1684b943b1aee0.tar.gz wireshark-38ec1644e68721d6b5afb84dce1684b943b1aee0.tar.bz2 wireshark-38ec1644e68721d6b5afb84dce1684b943b1aee0.zip |
Add APIs to Wiretap to return the file of the size as supplied by the OS
(so if the file's gzipped, it's *NOT* the size of the file after
uncompressing), and an approximation of the amount of that data read
sequentially so far.
Use those for various progress bars and the like.
Make the fstat() in the Ascend trace reader directly use wth->fd, as
it's inside Wiretap; that gets rid of the last caller of wtap_fd() (as
we're no longer directly using fstat() or lseek() in Ethereal), so get
rid of wtap_fd().
svn path=/trunk/; revision=15437
Diffstat (limited to 'merge.h')
-rw-r--r-- | merge.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ typedef struct merge_in_file_s { wtap *wth; long data_offset; in_file_state_e state; - long size; /* file size */ + gint64 size; /* file size */ } merge_in_file_t; /** Open a number of input files to merge. |