diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-02-20 20:15:51 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-02-20 20:15:51 +0000 |
commit | c7f1a431d23e17a15777652b1252e139f182b0e6 (patch) | |
tree | bb49b313d7ab3bd069902b1b651ec6cecaf6122e /wiretap/wtap-int.h | |
parent | c53a1546f5130e192fcd157f6e04e03c1a719ce6 (diff) | |
download | wireshark-c7f1a431d23e17a15777652b1252e139f182b0e6.tar.gz wireshark-c7f1a431d23e17a15777652b1252e139f182b0e6.tar.bz2 wireshark-c7f1a431d23e17a15777652b1252e139f182b0e6.zip |
Handle reading and writing of multiple IDB:s, write IDB options and use correct lengt for strings, handle more than 100 char comment
svn path=/trunk/; revision=41082
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index 75bf93d84e..6e13e2b2ed 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -44,14 +44,19 @@ 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 holding data of the currently read file. + */ struct wtap { FILE_T fh; - FILE_T random_fh; /* Secondary FILE_T for random access */ + FILE_T random_fh; /**< Secondary FILE_T for random access */ int file_type; guint snapshot_length; struct Buffer *frame_buffer; struct wtap_pkthdr phdr; struct wtapng_section_s shb_hdr; + guint number_of_interfaces; /**< The number of interfaces a capture was made on, number of IDB:s in a pcapng file or equivalent(?)*/ + GArray *interface_data; /**< An array holding the interface data from pcapng IDB:s or equivalent(?)*/ union wtap_pseudo_header pseudo_header; gint64 data_offset; @@ -100,10 +105,13 @@ struct wtap_dumper { subtype_write_func subtype_write; subtype_close_func subtype_close; - int tsprecision; /* timestamp precision of the lower 32bits - * e.g. WTAP_FILE_TSPREC_USEC */ + int tsprecision; /**< timestamp precision of the lower 32bits + * e.g. WTAP_FILE_TSPREC_USEC + */ struct addrinfo *addrinfo_list; struct wtapng_section_s *shb_hdr; + guint number_of_interfaces; /**< The number of interfaces a capture was made on, number of IDB:s in a pcapng file or equivalent(?)*/ + GArray *interface_data; /**< An array holding the interface data from pcapng IDB:s or equivalent(?) NULL if not present.*/ }; extern gboolean wtap_dump_file_write(wtap_dumper *wdh, const void *buf, |