diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-17 16:44:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-17 16:44:09 +0000 |
commit | 2bd813507a5a42c298d09ac8d83ca1eebd8db277 (patch) | |
tree | a3082031a16fbc243f696cf378ab53b9030238c1 /wiretap/wtap.h | |
parent | 4ad0bf65f2ebecf1b501ba7733063d9c0f8e3f1d (diff) | |
download | wireshark-2bd813507a5a42c298d09ac8d83ca1eebd8db277.tar.gz wireshark-2bd813507a5a42c298d09ac8d83ca1eebd8db277.tar.bz2 wireshark-2bd813507a5a42c298d09ac8d83ca1eebd8db277.zip |
Export a wtap_dump_can_write_encaps() routine from Wiretap; it takes a
file type and a GArray of encapsulation types and returns TRUE if a
capture with all those encapsulation types can be written to a file in
that file type and FALSE otherwise. Use it where appropriate.
svn path=/trunk/; revision=43315
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 7ef23fb308..f5cb8e4b1c 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1097,6 +1097,13 @@ void wtap_close(wtap *wth); /*** dump packets into a capture file ***/ gboolean wtap_dump_can_open(int filetype); gboolean wtap_dump_can_write_encap(int filetype, int encap); + +/** + * Return TRUE if a capture with a given GArray of WTAP_ENCAP_ types + * can be written in a specified format, and FALSE if it can't. + */ +gboolean wtap_dump_can_write_encaps(int ft, const GArray *file_encaps); + gboolean wtap_dump_can_compress(int filetype); gboolean wtap_dump_has_name_resolution(int filetype); |