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/snoop.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wiretap/snoop.h') diff --git a/wiretap/snoop.h b/wiretap/snoop.h index a740d1b62c..4e104da02f 100644 --- a/wiretap/snoop.h +++ b/wiretap/snoop.h @@ -1,6 +1,6 @@ /* snoop.h * - * $Id: snoop.h,v 1.4 1999/12/04 05:14:39 guy Exp $ + * $Id: snoop.h,v 1.5 1999/12/04 08:32:13 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -23,3 +23,4 @@ int snoop_open(wtap *wth, int *err); gboolean snoop_dump_open(wtap_dumper *wdh, int *err); +int snoop_dump_can_dump_encap(int filetype, int encap); -- cgit v1.2.3