Tighten the dump-glossary test.
[metze/wireshark/wip.git] / proto_hier_stats.h
1 /* proto_hier_stats.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef PROTO_HIER_STATS_H
23 #define PROTO_HIER_STATS_H
24
25 #include <epan/proto.h>
26
27 typedef struct {
28         header_field_info       *hfinfo;
29         guint                   num_pkts_total;
30         guint                   num_pkts_last;
31         guint                   num_bytes_total;
32         guint                   num_bytes_last;
33 } ph_stats_node_t;
34
35
36 typedef struct {
37         guint   tot_packets;
38         guint   tot_bytes;
39         GNode   *stats_tree;
40         double  first_time;     /* seconds (msec resolution) of first packet */
41         double  last_time;      /* seconds (msec resolution) of last packet  */
42 } ph_stats_t;
43
44
45 ph_stats_t* ph_stats_new(void);
46
47 void ph_stats_free(ph_stats_t *ps);
48
49 #endif