Move #if 0 up to include the now unused struct definition
[metze/wireshark/wip.git] / ui / 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 __UI_PROTO_HIER_STATS_H__
23 #define __UI_PROTO_HIER_STATS_H__
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29 /** @file
30  * Protocol Hierarchy Statistics
31  */
32
33 #include <epan/proto.h>
34
35 typedef struct {
36         header_field_info       *hfinfo;
37         guint                   num_pkts_total;
38         guint                   num_pkts_last;
39         guint                   num_bytes_total;
40         guint                   num_bytes_last;
41 } ph_stats_node_t;
42
43
44 typedef struct {
45         guint   tot_packets;
46         guint   tot_bytes;
47         GNode   *stats_tree;
48         double  first_time;     /* seconds (msec resolution) of first packet */
49         double  last_time;      /* seconds (msec resolution) of last packet  */
50 } ph_stats_t;
51
52 struct _capture_file;
53 ph_stats_t *ph_stats_new(struct _capture_file *cf);
54
55 void ph_stats_free(ph_stats_t *ps);
56
57 #ifdef __cplusplus
58 }
59 #endif /* __cplusplus */
60
61 #endif /* __UI_PROTO_HIER_STATS_H__ */
62
63 /*
64  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
65  *
66  * Local variables:
67  * c-basic-offset: 8
68  * tab-width: 8
69  * indent-tabs-mode: t
70  * End:
71  *
72  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
73  * :indentSize=8:tabSize=8:noTabs=false:
74  */