diff options
author | Michael Mann <mmann78@netscape.net> | 2016-06-19 02:33:13 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-19 18:59:07 +0000 |
commit | 147b3d5149ec6cfce1489f9922cc5e4ac0ca2209 (patch) | |
tree | f3dc7f2febdfe51dbef469c5cf4cefb9bb0d8c4a /ui/decode_as_utils.h | |
parent | f4fc03d79b9e3aa3a63a1b88974b3417e308d96e (diff) | |
download | wireshark-147b3d5149ec6cfce1489f9922cc5e4ac0ca2209.tar.gz |
Ability to invoke "Decode As..." as command-line argument for GUIshark.
TShark has had the functionality for awhile. While the GUI version
still has ways to change and persist Decode As functionality, adding
command line functionality gives the Decode As from initial launch
of the GUI.
Was also an excuse to refactor a bunch of code out of tshark.c
Bug: 5143
Change-Id: Ie67007d75e897bc06cc9afd9b84372a96b93778c
Reviewed-on: https://code.wireshark.org/review/16008
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/decode_as_utils.h')
-rw-r--r-- | ui/decode_as_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/decode_as_utils.h b/ui/decode_as_utils.h index a8beadef9c..50008182d4 100644 --- a/ui/decode_as_utils.h +++ b/ui/decode_as_utils.h @@ -73,6 +73,14 @@ void decode_build_reset_list (const gchar *table_name, ftenum_t selector_type, */ void decode_clear_all(void); +/* +* This is the template for the decode as option; it is shared between the +* various functions that output the usage for this parameter. +*/ +#define DECODE_AS_ARG_TEMPLATE "<layer_type>==<selector>,<decode_as_protocol>" + +gboolean decode_as_command_option(const gchar *cl_param); + #ifdef __cplusplus } #endif /* __cplusplus */ |