summaryrefslogtreecommitdiff
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorHadriel Kaplan <hadrielk@yahoo.com>2014-03-04 06:19:01 -0500
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-03-05 18:38:05 +0000
commit041f844d7228d1ac41cf9b5e4629d7b7adec0e1f (patch)
tree12397039ed87f6584903638f7783b26e04311d84 /wiretap/wtap.h
parentf1f06014c41b195b3695827319cf43f4e39becca (diff)
downloadwireshark-041f844d7228d1ac41cf9b5e4629d7b7adec0e1f.tar.gz
Add command-line arg for input file format for tshark/wireshark
Now that we have the ability to choose input file format type in the GUI, we might as well have it in the command-line too. Plus it would help me in test-stuies if we had a commandline. So I've added a '-X read_format:Foo' for this. Using just '-X read_format:', or with a bad name, will make it print out the full list (in tshark); just like the '-F' does for output file formats. Note: I am *not* putting in code for Win32 GUI, because I can't compile that and I wouldn't have even done the GTK one if I could compile Qt originally. (I don't think we need to add any more features to GTK or Win32, just Qt from now on, right?) Change-Id: I2fe6481d186f63bd2303b9e591edf397a2e14b64 Reviewed-on: https://code.wireshark.org/review/493 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index c5a4832aa9..61cb2bff5f 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1493,6 +1493,8 @@ void wtap_register_heuristic_open_info(const struct heuristic_open_info *oi);
WS_DLL_PUBLIC
void wtap_register_open_info(const struct open_info *oi);
WS_DLL_PUBLIC
+unsigned int open_info_name_to_type(const char *name);
+WS_DLL_PUBLIC
int wtap_register_file_type_subtypes(const struct file_type_subtype_info* fi);
WS_DLL_PUBLIC
int wtap_register_encap_type(const char* name, const char* short_name);