summaryrefslogtreecommitdiff
path: root/epan/print.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-22 01:07:13 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-22 09:07:46 +0000
commit741db4c751b44bfa4ab2dc0cb4bd882d4732c55c (patch)
tree9594367ff78ecfe47a4429b5ee2d12600c86fa8b /epan/print.h
parentc68e77b8447b3323cf308d53d2cf7936714677a1 (diff)
downloadwireshark-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.h11
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);