From d6fc28a0d1997fb5258d6ca48f66f734aa016854 Mon Sep 17 00:00:00 2001 From: tuexen Date: Sun, 26 Apr 2009 15:51:25 +0000 Subject: Make ringbuffer.[ch] file format agnostic. Move write routines to dumpcap.c This is a preparation for pcapng support. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28155 f5534014-38df-0310-8fa8-9805f1628bb7 --- pcapio.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pcapio.h') diff --git a/pcapio.h b/pcapio.h index ae2d4e93c5..04cded1e58 100644 --- a/pcapio.h +++ b/pcapio.h @@ -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. */ -- cgit v1.2.3