X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=capture_info.h;h=8e2e7b6bed280bdf2d31dba1cd30e032f7d0e9d6;hb=refs%2Fheads%2Fmaster;hp=abc0b2e91f4e251eb4bbe69dccf4f7435c99eedc;hpb=444dfda793784cecda0757cbe50e27a5ba855ba0;p=jlayton%2Fwireshark.git 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 -/* XXX - Should be temporary until packet_counts is removed */ -#include - #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;