diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-05-09 08:12:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-05-09 08:12:26 +0000 |
commit | 3de2b1be7405adac31bd796f3380b9d8edbe0f99 (patch) | |
tree | b444b752e4435e0b436bbf8eef5c96af9f35a2de /wiretap/wtap-int.h | |
parent | 88a1ed85e3156e80c3fed4848d651aae433dc8d8 (diff) | |
download | wireshark-3de2b1be7405adac31bd796f3380b9d8edbe0f99.tar.gz |
Get rid of the fd member of a wth structure; the FILE_T's in that
structure include a file descriptor. Add a wtap_fstat() for the file
readers that use file times to generate time stamps (we really need a
way to say "this file has no time stamps" or "this file has only
relative time stamps).
svn path=/trunk/; revision=37026
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index 9691ce8eff..96e3a68ba5 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -39,16 +39,19 @@ #include <zlib.h> #endif /* HAVE_LIBZ */ +#include <wsutil/file_util.h> + typedef struct wtap_reader *FILE_T; #include "wtap.h" +int wtap_fstat(wtap *wth, ws_statb64 *statb, int *err); + typedef gboolean (*subtype_read_func)(struct wtap*, int*, char**, gint64*); typedef gboolean (*subtype_seek_read_func)(struct wtap*, gint64, union wtap_pseudo_header*, guint8*, int, int *, char **); struct wtap { FILE_T fh; - int fd; /* File descriptor for cap file */ FILE_T random_fh; /* Secondary FILE_T for random access */ int file_type; int snapshot_length; |