path: root/capchild/capture_sync.c
diff options
authorMichael Mann <mmann78@netscape.net>2015-12-16 23:15:03 -0500
committerMichael Mann <mmann78@netscape.net>2015-12-19 14:22:56 +0000
commit444dfda793784cecda0757cbe50e27a5ba855ba0 (patch)
treeec34e5780c2dbe29bc2f170c2fc406ee20aa0430 /capchild/capture_sync.c
parent7baac67149a68b66087c5d688dbeda2869485765 (diff)
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 'capchild/capture_sync.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c
index a698efc5e0..6f02219d60 100644
--- a/capchild/capture_sync.c
+++ b/capchild/capture_sync.c
@@ -339,7 +339,7 @@ init_pipe_args(int *argc) {
#define ARGV_NUMBER_LEN 24
/* a new capture run: start a new dumpcap task and hand over parameters through command line */
-sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, void (*update_cb)(void))
+sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, info_data_t* cap_data, void (*update_cb)(void))
char ssnap[ARGV_NUMBER_LEN];
char scount[ARGV_NUMBER_LEN];
@@ -772,6 +772,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, voi
cap_session->fork_child_status = 0;
cap_session->capture_opts = capture_opts;
+ cap_session->cap_data_info = cap_data;
/* we might wait for a moment till child is ready, so update screen now */
if (update_cb) update_cb();