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 /wiretap/wtap.def | |
parent | 06823cdce8a0e63cf888c449a1b37071d622f1c3 (diff) |
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 'wiretap/wtap.def')
-rw-r--r-- | wiretap/wtap.def | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap.def b/wiretap/wtap.def index 1554ebefc4..1e314db475 100644 --- a/wiretap/wtap.def +++ b/wiretap/wtap.def @@ -10,8 +10,8 @@ wtap_dump_file wtap_dump_open wtap_encap_short_string wtap_encap_string -wtap_fd wtap_file_encap +wtap_file_size wtap_file_type wtap_file_type_short_string wtap_file_type_string @@ -23,6 +23,7 @@ wtap_phdr wtap_process_pcap_packet wtap_pseudoheader wtap_read +wtap_read_so_far wtap_seek_read wtap_sequential_close wtap_short_string_to_encap |