Added mockups for LSA_SECRET and LSA_SECURITY_DESCRIPTOR inside
[obnox/wireshark/wip.git] / wiretap / wtap-int.h
index 972b1d1988fd9b6669116765bb1bb52abee49608..6b8e04f49ae446e7753e0f076517635e92ab0c4c 100644 (file)
@@ -1,6 +1,6 @@
 /* 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>
@@ -18,7 +18,6 @@
  * 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__
@@ -116,9 +115,13 @@ typedef struct {
        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 */
@@ -141,6 +144,7 @@ struct wtap {
                netxray_t               *netxray;
                ascend_t                *ascend;
                csids_t                 *csids;
+               etherpeek_t             *etherpeek;
                void                    *generic;
        } capture;
 
@@ -186,7 +190,7 @@ struct wtap_dumper {
        int                     file_type;
        int                     snaplen;
        int                     encap;
-       int                     bytes_dumped;
+       long                    bytes_dumped;
 
        union {
                void                    *opaque;
@@ -347,4 +351,9 @@ struct wtap_dumper {
        } \
        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__ */