From 951ac6c230c0397767ac4bfc1b5aa668330dd68d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 21 Apr 2017 12:25:57 -0700 Subject: Put all the capture dissector structures into epan/capture_dissectors.h. Don't scatter them amongst various other headers. Change-Id: I243954222cd4ad3e6bbe8b4d1dd25ee4952f87d6 Reviewed-on: https://code.wireshark.org/review/21277 Reviewed-by: Guy Harris --- epan/capture_dissectors.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'epan/capture_dissectors.h') diff --git a/epan/capture_dissectors.h b/epan/capture_dissectors.h index d4bbf194d8..d413ebc93e 100644 --- a/epan/capture_dissectors.h +++ b/epan/capture_dissectors.h @@ -25,7 +25,6 @@ #include "ws_symbol_export.h" #include -#include #ifdef __cplusplus extern "C" { @@ -34,6 +33,17 @@ extern "C" { /** @file */ +/** Table of counts of packets of various types. */ +typedef struct { + GHashTable* counts_hash; /* packet counters keyed by proto */ + gint other; /* Packets not counted in the hash total */ + gint total; /* Cache of total packets */ +} packet_counts; + +typedef struct _capture_packet_info { + GHashTable *counts; +} capture_packet_info_t; + typedef struct capture_dissector_handle* capture_dissector_handle_t; /** callback function definition for capture dissectors */ -- cgit v1.2.1