diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-27 18:40:09 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-28 01:40:39 +0000 |
commit | 5d019cfb13a75663f5fde39163650884208e5791 (patch) | |
tree | 516164ad9c97613664871aad584ae789e2f032bf /ui/commandline.h | |
parent | 3f49e897f674008c27de9833b8ba2d119dc22ef4 (diff) | |
download | wireshark-5d019cfb13a75663f5fde39163650884208e5791.tar.gz |
Make quit_after_cap an item in commandline_param_info_t.
And make the commandline_info structure global, so all the places that
look at quit_after_cap can get at it.
Change-Id: I006329cf8842c655cca36f024570855d1b16e107
Reviewed-on: https://code.wireshark.org/review/16182
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/commandline.h')
-rw-r--r-- | ui/commandline.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/commandline.h b/ui/commandline.h index ecd660011c..161c57a68a 100644 --- a/ui/commandline.h +++ b/ui/commandline.h @@ -38,6 +38,7 @@ typedef struct commandline_param_info #ifdef HAVE_LIBPCAP gboolean list_link_layer_types; gboolean start_capture; + gboolean quit_after_cap; #endif e_prefs *prefs_p; search_direction jump_backwards; @@ -54,9 +55,7 @@ typedef struct commandline_param_info extern void commandline_other_options(int argc, char *argv[], commandline_param_info_t* param_info, gboolean opt_reset); -#if defined(HAVE_LIBPCAP) || defined(HAVE_EXTCAP) -gboolean quit_after_cap; /**< Makes a "capture only mode". Implies -k */ -#endif +static commandline_param_info_t global_commandline_info; #ifdef __cplusplus } |