Add a new tool which summarizes packet counts by protocols, but
[obnox/wireshark/wip.git] / proto_hier_stats.h
1
2 #ifndef PROTO_HIER_STATS_H
3 #define PROTO_HIER_STATS_H
4
5 #include "proto.h"
6
7 typedef struct {
8         header_field_info       *hfinfo;
9         guint                   num_pkts_total;
10         guint                   num_pkts_last;
11         guint                   num_bytes_total;
12         guint                   num_bytes_last;
13 } ph_stats_node_t;
14
15
16 typedef struct {
17         guint   tot_packets;
18         guint   tot_bytes;
19         GNode   *stats_tree;
20 } ph_stats_t;
21
22
23 ph_stats_t* ph_stats_new(void);
24
25 void ph_stats_free(ph_stats_t *ps);
26
27 #endif