aboutsummaryrefslogtreecommitdiffstats
path: root/ui/capture.h
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2023-12-17 23:30:29 -0500
committerAndersBroman <a.broman58@gmail.com>2023-12-22 10:50:49 +0000
commit54ed27e11a3d49d7abb99196c9db7649e23c4441 (patch)
treed00fa7c2437574c74cc16ab5b55ba843c84ab99f /ui/capture.h
parent0fc23598127ce1b0579cf49ac7c2e619080fd045 (diff)
Qt: [Re]start the stats when filling the interface list
Use the welcome mode to fill in the interface list and start the stats at the same time, instead of two calls. Also now restart the stats when refreshing the interface list because an interface has changed. Add a comment that there are still some situations where we don't trigger an interface refresh on a interface monitor notification on Linux Related to #15082
Diffstat (limited to 'ui/capture.h')
-rw-r--r--ui/capture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/capture.h b/ui/capture.h
index d1ec3aeede..8935ccbe0f 100644
--- a/ui/capture.h
+++ b/ui/capture.h
@@ -92,6 +92,15 @@ typedef struct if_stat_cache_s if_stat_cache_t;
extern WS_RETNONNULL if_stat_cache_t * capture_stat_start(capture_options *capture_opts);
/**
+ * Retrieve the list of interfaces and their capabilities, and start
+ * gathering capture statistics for the interfaces.
+ * @param capture_opts A structure containing options for the capture.
+ * @param[out] if_list A pointer that will store a GList of if_info_t.
+ * @return A pointer to the statistics state data.
+ */
+extern WS_RETNONNULL if_stat_cache_t * capture_interface_stat_start(capture_options *capture_opts, GList **if_list);
+
+/**
* Fetch capture statistics, similar to pcap_stats().
*/
struct pcap_stat; /* Stub in case we don't or haven't yet included pcap.h */