summaryrefslogtreecommitdiff
path: root/capture_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'capture_info.h')
-rw-r--r--capture_info.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/capture_info.h b/capture_info.h
index abc0b2e91f..8e2e7b6bed 100644
--- a/capture_info.h
+++ b/capture_info.h
@@ -39,13 +39,17 @@
#include "capture_opts.h"
#include <capchild/capture_session.h>
-/* XXX - Should be temporary until packet_counts is removed */
-#include <epan/packet.h>
-
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
+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;
+
/** Current Capture info. */
typedef struct {
/* handle */
@@ -58,7 +62,7 @@ typedef struct {
} capture_info;
typedef struct _info_data {
- packet_counts counts; /* several packet type counters */
+ packet_counts counts; /* Packet counting */
struct wtap* wtap; /* current wtap file */
capture_info ui; /* user interface data */
} info_data_t;