From 3de2b1be7405adac31bd796f3380b9d8edbe0f99 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 9 May 2011 08:12:26 +0000 Subject: 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 --- wiretap/wtap-int.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wiretap/wtap-int.h') 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 #endif /* HAVE_LIBZ */ +#include + 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; -- cgit v1.2.1