aboutsummaryrefslogtreecommitdiffstats
path: root/ui/proto_hier_stats.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-12-03 10:53:58 -0800
committerGuy Harris <guy@alum.mit.edu>2017-12-03 18:54:37 +0000
commiteb8ffb74e27523492855268abf5cb45927ffdb04 (patch)
tree3c6eb1e8a931a146a70e3dfe7836884b10c17d2c /ui/proto_hier_stats.h
parent114c989fb37b25671d8886458b206f11471b3277 (diff)
Use cfile.h to define the capture_file type.
Have cfile-int.h declare the structure, and use it in files that directly access the structure. Have cfile.h just incompletely declare the structure and include it rather than explicitly declaring it in source files or other header files. Never directly refer to struct _capture_file except when typedeffing capture_file. Add #includes as necessary, now that cfile.h doesn't drag in a ton of Change-Id: I7931c8039d75ff7c980b0f2a6e221f20e602a556 Reviewed-on: https://code.wireshark.org/review/24686 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/proto_hier_stats.h')
-rw-r--r--ui/proto_hier_stats.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/proto_hier_stats.h b/ui/proto_hier_stats.h
index 6594e8c9af..0b8cea60df 100644
--- a/ui/proto_hier_stats.h
+++ b/ui/proto_hier_stats.h
@@ -19,6 +19,7 @@ extern "C" {
*/
#include <epan/proto.h>
+#include "cfile.h"
typedef struct {
header_field_info *hfinfo;
@@ -37,8 +38,7 @@ typedef struct {
double last_time; /* seconds (msec resolution) of last packet */
} ph_stats_t;
-struct _capture_file;
-ph_stats_t *ph_stats_new(struct _capture_file *cf);
+ph_stats_t *ph_stats_new(capture_file *cf);
void ph_stats_free(ph_stats_t *ps);