diff options
author | Michael Mann <mmann78@netscape.net> | 2015-12-16 23:15:03 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-12-19 14:22:56 +0000 |
commit | 444dfda793784cecda0757cbe50e27a5ba855ba0 (patch) | |
tree | ec34e5780c2dbe29bc2f170c2fc406ee20aa0430 /ui/qt/main_window.h | |
parent | 7baac67149a68b66087c5d688dbeda2869485765 (diff) | |
download | wireshark-444dfda793784cecda0757cbe50e27a5ba855ba0.tar.gz |
Allow "capture info data" to not be a singleton.
It was buried as a static variable in capture_info.c, and functions were refactored to allow a pointer to the info_data_t structure to be passed in. TShark and GTK will have their own single (global) copy of the structure, while it opens up Qt to have multiple instances.
Change-Id: Ic2d7a2ad574de43f457cb18b194d6bc3fffb6120
Reviewed-on: https://code.wireshark.org/review/12691
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r-- | ui/qt/main_window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index 204eb99f6a..abd63e2910 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -87,6 +87,7 @@ public: QString getFilter(); #ifdef HAVE_LIBPCAP capture_session *captureSession() { return &cap_session_; } + info_data_t *captureInfoData() { return &info_data_; } #endif virtual QMenu *createPopupMenu(); @@ -151,6 +152,7 @@ private: #ifdef HAVE_LIBPCAP capture_session cap_session_; CaptureInterfacesDialog capture_interfaces_dialog_; + info_data_t info_data_; #endif // Pipe input |