From 3b935744025f3f4fc3e1d7e6f30850f267fc04ce Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 4 Dec 1999 08:32:14 +0000 Subject: Add some infrastructure for the use of Ethereal, so it can make a list of all the file types in which a file can be saved. Giving each dumpable file type a routine that checks whether a file of a given file type and encapsulation can be written lets us hoist some checks into common code from out of the open routines. If the "dump close" routine for a dump stream is NULL, have that mean that there's no action that needs to be taken on a close by the code to handle that file type; some file types don't need that, as they can be written purely sequentially. svn path=/trunk/; revision=1200 --- wiretap/netmon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wiretap/netmon.h') diff --git a/wiretap/netmon.h b/wiretap/netmon.h index 468d6775ad..0efd7abe7d 100644 --- a/wiretap/netmon.h +++ b/wiretap/netmon.h @@ -1,6 +1,6 @@ /* netmon.h * - * $Id: netmon.h,v 1.3 1999/12/04 05:14:39 guy Exp $ + * $Id: netmon.h,v 1.4 1999/12/04 08:32:12 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -23,3 +23,4 @@ int netmon_open(wtap *wth, int *err); gboolean netmon_dump_open(wtap_dumper *wdh, int *err); +int netmon_dump_can_dump_encap(int filetype, int encap); -- cgit v1.2.1