aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-09 08:12:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-09 08:12:26 +0000
commit059b162efd9aa37aa568f8f49198d33e9a488c24 (patch)
treeb444b752e4435e0b436bbf8eef5c96af9f35a2de /wiretap/wtap-int.h
parent9a8e8c171e543406b699d4b2a72a4e7b7de2d004 (diff)
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37026 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h5
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;