From 89e6f4c468eaa9b479d7c1a24ca83223f23f5c95 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 3 Feb 2015 08:39:14 -0800 Subject: Qt: Add the Protocol Hierarchy statistics dialog. Change-Id: I6872e323daca4798c638d764873f54c4c0dc0006 Reviewed-on: https://code.wireshark.org/review/6934 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/proto_hier_stats.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'ui/proto_hier_stats.h') diff --git a/ui/proto_hier_stats.h b/ui/proto_hier_stats.h index c3ba23b8a0..6bfdadb540 100644 --- a/ui/proto_hier_stats.h +++ b/ui/proto_hier_stats.h @@ -22,6 +22,14 @@ #ifndef __UI_PROTO_HIER_STATS_H__ #define __UI_PROTO_HIER_STATS_H__ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** @file + * Protocol Hierarchy Statistics + */ + #include typedef struct { @@ -41,11 +49,15 @@ typedef struct { double last_time; /* seconds (msec resolution) of last packet */ } ph_stats_t; - -ph_stats_t *ph_stats_new(void); +struct _capture_file; +ph_stats_t *ph_stats_new(struct _capture_file *cf); void ph_stats_free(ph_stats_t *ps); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* __UI_PROTO_HIER_STATS_H__ */ /* -- cgit v1.2.1