aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-04-01 21:39:28 +0000
committerGuy Harris <guy@alum.mit.edu>2013-04-01 21:39:28 +0000
commitd517ab369889ae3419d71be01b44e628d53dae7b (patch)
tree4d1d238527bf1bb234ac7ce114e581e2a7f102f9 /wiretap/wtap.h
parentb1ecd8d217502b6223ffed2ea0d0edabb5a9f81f (diff)
downloadwireshark-d517ab369889ae3419d71be01b44e628d53dae7b.tar.gz
wireshark-d517ab369889ae3419d71be01b44e628d53dae7b.tar.bz2
wireshark-d517ab369889ae3419d71be01b44e628d53dae7b.zip
In the Lua dumper code, don't bother checking whether the encapsulation
is supported before trying to open for writing - the attempt to open for writing will do the check for you. Instead, check for specific errors if the attempt to open for writing fails, and use somewhat more specific error messages for certain error codes. (We should perhaps check for even more error codes in those cases.) That gets rid of all external calls to wtap_dump_can_write_encap(), so remove it from wtap.h and make it static. svn path=/trunk/; revision=48691
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 1a1d1b8f97..a77094ad02 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1238,8 +1238,6 @@ void wtap_close(wtap *wth);
/*** dump packets into a capture file ***/
WS_DLL_PUBLIC
gboolean wtap_dump_can_open(int filetype);
-WS_DLL_PUBLIC
-gboolean wtap_dump_can_write_encap(int filetype, int encap);
/**
* Given a GArray of WTAP_ENCAP_ types, return the per-file encapsulation