diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-12-04 08:32:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-12-04 08:32:14 +0000 |
commit | 3b935744025f3f4fc3e1d7e6f30850f267fc04ce (patch) | |
tree | 04954b5a0f08b5ad2fc7e3d49b9655f605e0a9d2 /wiretap/netmon.h | |
parent | c5447af40a29b86c35bcca65bd1c1da9e3b9de51 (diff) | |
download | wireshark-3b935744025f3f4fc3e1d7e6f30850f267fc04ce.tar.gz wireshark-3b935744025f3f4fc3e1d7e6f30850f267fc04ce.tar.bz2 wireshark-3b935744025f3f4fc3e1d7e6f30850f267fc04ce.zip |
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/netmon.h')
-rw-r--r-- | wiretap/netmon.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gram@verdict.uthscsa.edu> @@ -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); |