/* wtap-int.h
*
- * $Id: wtap-int.h,v 1.16 2001/12/04 07:32:05 guy Exp $
+ * $Id: wtap-int.h,v 1.22 2002/03/05 08:39:30 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
*/
#ifndef __WTAP_INT_H__
gboolean byteswapped;
} csids_t;
-typedef int (*subtype_read_func)(struct wtap*, int*, long*);
-typedef int (*subtype_seek_read_func)(struct wtap*, long, union wtap_pseudo_header*,
- guint8*, int);
+typedef struct {
+ struct timeval reference_time;
+} etherpeek_t;
+
+typedef gboolean (*subtype_read_func)(struct wtap*, int*, long*);
+typedef gboolean (*subtype_seek_read_func)(struct wtap*, long, union wtap_pseudo_header*,
+ guint8*, int, int *);
struct wtap {
FILE_T fh;
int fd; /* File descriptor for cap file */
netxray_t *netxray;
ascend_t *ascend;
csids_t *csids;
+ etherpeek_t *etherpeek;
void *generic;
} capture;
int file_type;
int snaplen;
int encap;
- int bytes_dumped;
+ long bytes_dumped;
union {
void *opaque;
} \
G_STMT_END
+/* glib doesn't have g_ptr_array_len of all things!*/
+#ifndef g_ptr_array_len
+#define g_ptr_array_len(a) ((a)->len)
+#endif
+
#endif /* __WTAP_INT_H__ */