Fix "disable this protocol by default".
[jlayton/wireshark.git] / capture_info.h
index abc0b2e91f4e251eb4bbe69dccf4f7435c99eedc..8e2e7b6bed280bdf2d31dba1cd30e032f7d0e9d6 100644 (file)
 #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;