diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2009-04-26 15:51:25 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2009-04-26 15:51:25 +0000 |
commit | f5547c0d7815ff8f6b52b0c70ca3c8b9fcd5db54 (patch) | |
tree | 057f7caabc8decd89bba902c01517115a72fcb53 /pcapio.h | |
parent | c68e3442845308c0cdc18068885874ce31f92d96 (diff) | |
download | wireshark-f5547c0d7815ff8f6b52b0c70ca3c8b9fcd5db54.tar.gz wireshark-f5547c0d7815ff8f6b52b0c70ca3c8b9fcd5db54.tar.bz2 wireshark-f5547c0d7815ff8f6b52b0c70ca3c8b9fcd5db54.zip |
Make ringbuffer.[ch] file format agnostic.
Move write routines to dumpcap.c
This is a preparation for pcapng support.
svn path=/trunk/; revision=28155
Diffstat (limited to 'pcapio.h')
-rw-r--r-- | pcapio.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -25,11 +25,15 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Returns a FILE * to write to on success, NULL on failure; sets "*err" to - an error code, or 0 for a short write, on failure */ +/* Returns a FILE * to write to on success, NULL on failure */ extern FILE * -libpcap_fdopen(int fd, int linktype, int snaplen, long *bytes_written, - int *err); +libpcap_fdopen(int fd, int *err); + +/* Write the file header to a dump file. + Returns TRUE on success, FALSE on failure. + Sets "*err" to an error code, or 0 for a short write, on failure*/ +extern gboolean +libpcap_write_file_header(FILE *fp, int linktype, int snaplen, long *bytes_written, int *err); /* Write a record for a packet to a dump file. Returns TRUE on success, FALSE on failure. */ |