From f2b8504740f3fd145a5504682c3788947e151606 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 19 Dec 2015 10:11:40 -0500 Subject: Don't limit capture packet counts to a fixed set of protocols. Kept backwards compatibility with GTK+ capture info dialog by keeping the protocols tracked hardcoded, but Qt should have more freedom. Change-Id: I497be71ec761d53f312e14858daa7152d01b8c72 Reviewed-on: https://code.wireshark.org/review/12724 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/capture_dissectors.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'epan/capture_dissectors.h') diff --git a/epan/capture_dissectors.h b/epan/capture_dissectors.h index 8d353d88f6..dd0486efdf 100644 --- a/epan/capture_dissectors.h +++ b/epan/capture_dissectors.h @@ -25,6 +25,7 @@ #include "ws_symbol_export.h" #include +#include #ifdef __cplusplus extern "C" { @@ -46,6 +47,9 @@ WS_DLL_PUBLIC void register_capture_dissector(const char* name, const guint32 pa WS_DLL_PUBLIC gboolean try_capture_dissector(const char* name, const guint32 pattern, const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header); +WS_DLL_PUBLIC guint32 capture_dissector_get_count(packet_counts* counts, const int proto); +WS_DLL_PUBLIC void capture_dissector_increment_count(capture_packet_info_t *cpinfo, const int proto); + extern void capture_dissector_init(void); extern void capture_dissector_cleanup(void); -- cgit v1.2.1