From 444dfda793784cecda0757cbe50e27a5ba855ba0 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 16 Dec 2015 23:15:03 -0500 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/capture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/capture.h') diff --git a/ui/capture.h b/ui/capture.h index 5057b82910..5da05ba949 100644 --- a/ui/capture.h +++ b/ui/capture.h @@ -30,6 +30,7 @@ */ #include "capture_opts.h" +#include "capture_info.h" #include "capchild/capture_session.h" #ifdef __cplusplus @@ -66,7 +67,7 @@ capture_callback_remove(capture_callback_t func, gpointer user_data); * @return TRUE if the capture starts successfully, FALSE otherwise. */ extern gboolean -capture_start(capture_options *capture_opts, capture_session *cap_session, void(*update_cb)(void)); +capture_start(capture_options *capture_opts, capture_session *cap_session, info_data_t* cap_data, void(*update_cb)(void)); /** Stop a capture session (usually from a menu item). */ extern void -- cgit v1.2.3