diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-11-22 01:07:13 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-11-22 09:07:46 +0000 |
commit | 741db4c751b44bfa4ab2dc0cb4bd882d4732c55c (patch) | |
tree | 9594367ff78ecfe47a4429b5ee2d12600c86fa8b /epan/print.h | |
parent | c68e77b8447b3323cf308d53d2cf7936714677a1 (diff) | |
download | wireshark-741db4c751b44bfa4ab2dc0cb4bd882d4732c55c.tar.gz |
Get rid of another global in the print code.
Pass the "output only these protocols" hash table as an argument,
instead.
Change-Id: Id8540943037e7b9bbfe377120c3f60dbe54fe0f1
Reviewed-on: https://code.wireshark.org/review/5440
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/print.h')
-rw-r--r-- | epan/print.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/print.h b/epan/print.h index 020cce53ac..37a4a08204 100644 --- a/epan/print.h +++ b/epan/print.h @@ -95,16 +95,13 @@ WS_DLL_PUBLIC void output_fields_list_options(FILE *fh); WS_DLL_PUBLIC gboolean output_fields_has_cols(output_fields_t* info); /* - * Output only these protocols - */ -WS_DLL_PUBLIC GHashTable *output_only_tables; - -/* * Higher-level packet-printing code. */ -WS_DLL_PUBLIC gboolean proto_tree_print(print_args_t *print_args, epan_dissect_t *edt, - print_stream_t *stream); +WS_DLL_PUBLIC gboolean proto_tree_print(print_args_t *print_args, + epan_dissect_t *edt, + GHashTable *output_only_tables, + print_stream_t *stream); WS_DLL_PUBLIC gboolean print_hex_data(print_stream_t *stream, epan_dissect_t *edt); WS_DLL_PUBLIC void write_pdml_preamble(FILE *fh, const gchar* filename); |