From 741db4c751b44bfa4ab2dc0cb4bd882d4732c55c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 22 Nov 2014 01:07:13 -0800 Subject: 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 --- epan/print.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'epan/print.h') diff --git a/epan/print.h b/epan/print.h index 020cce53ac..37a4a08204 100644 --- a/epan/print.h +++ b/epan/print.h @@ -94,17 +94,14 @@ WS_DLL_PUBLIC gboolean output_fields_set_option(output_fields_t* info, gchar* op 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); -- cgit v1.2.3