summaryrefslogtreecommitdiff
path: root/wiretap/snoop.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-04 08:32:14 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-04 08:32:14 +0000
commit3b935744025f3f4fc3e1d7e6f30850f267fc04ce (patch)
tree04954b5a0f08b5ad2fc7e3d49b9655f605e0a9d2 /wiretap/snoop.h
parentc5447af40a29b86c35bcca65bd1c1da9e3b9de51 (diff)
downloadwireshark-3b935744025f3f4fc3e1d7e6f30850f267fc04ce.tar.gz
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
Diffstat (limited to 'wiretap/snoop.h')
-rw-r--r--wiretap/snoop.h3
1 files changed, 2 insertions, 1 deletions
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 <gram@verdict.uthscsa.edu>
@@ -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);