diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-16 18:18:11 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-17 01:18:43 +0000 |
commit | dae108837fc1d9c48eefbcc7feeff607c26e0a4e (patch) | |
tree | aa2901323887c6e2b6ffaa1700ea72447527a832 /plugins/mate/mate.h | |
parent | 3f912df8754972a6db06eda36564a300d5a5e350 (diff) | |
download | wireshark-dae108837fc1d9c48eefbcc7feeff607c26e0a4e.tar.gz |
Make the current MATE config pointer static only to packet-mate.c.
Pass it as an argument to everything else, so only packet-mate.c has the
notion of there being *a* configuration, and everything else takes the
configuration as an argument.
Change-Id: Ia92c1539586d3e71580fd822cf07bd3d79a6f093
Reviewed-on: https://code.wireshark.org/review/21151
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins/mate/mate.h')
-rw-r--r-- | plugins/mate/mate.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/mate/mate.h b/plugins/mate/mate.h index 01f5435f94..b1c15941ce 100644 --- a/plugins/mate/mate.h +++ b/plugins/mate/mate.h @@ -366,19 +366,18 @@ typedef union _mate_max_size { } mate_max_size; /* from mate_runtime.c */ -extern void initialize_mate_runtime(void); +extern void initialize_mate_runtime(mate_config* mc); extern mate_pdu* mate_get_pdus(guint32 framenum); -extern void mate_analyze_frame(packet_info *pinfo, proto_tree* tree); +extern void mate_analyze_frame(mate_config *mc, packet_info *pinfo, proto_tree* tree); /* from mate_setup.c */ extern mate_config* mate_make_config(const gchar* filename, int mate_hfid); -extern mate_config* mate_cfg(void); -extern mate_cfg_pdu* new_pducfg(gchar* name); -extern mate_cfg_gop* new_gopcfg(gchar* name); -extern mate_cfg_gog* new_gogcfg(gchar* name); +extern mate_cfg_pdu* new_pducfg(mate_config* matecfg, gchar* name); +extern mate_cfg_gop* new_gopcfg(mate_config* matecfg, gchar* name); +extern mate_cfg_gog* new_gogcfg(mate_config* matecfg, gchar* name); -extern gboolean add_hfid(header_field_info* hfi, gchar* as, GHashTable* where); +extern gboolean add_hfid(mate_config* matecfg, header_field_info* hfi, gchar* as, GHashTable* where); extern gchar* add_ranges(gchar* range, GPtrArray* range_ptr_arr); |