summaryrefslogtreecommitdiff
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-17 16:44:09 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-17 16:44:09 +0000
commit2bd813507a5a42c298d09ac8d83ca1eebd8db277 (patch)
treea3082031a16fbc243f696cf378ab53b9030238c1 /wiretap/wtap.h
parent4ad0bf65f2ebecf1b501ba7733063d9c0f8e3f1d (diff)
downloadwireshark-2bd813507a5a42c298d09ac8d83ca1eebd8db277.tar.gz
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.h7
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);