diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-04 08:32:14 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-04 08:32:14 +0000 |
commit | a523458070a789d76e0cc4faf65a18a9afdced7b (patch) | |
tree | 04954b5a0f08b5ad2fc7e3d49b9655f605e0a9d2 /wiretap/netmon.h | |
parent | c8bf50f50b0cb630ef8d38b551e1eb385b86c283 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1200 f5534014-38df-0310-8fa8-9805f1628bb7
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); |