aboutsummaryrefslogtreecommitdiffstats
path: root/proto_hier_stats.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-27 02:54:44 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-27 02:54:44 +0000
commit26a939c040765acb6d13eb1b6914287bb60041ff (patch)
tree979c246af1b4c25a9281402994c2545eb869eb96 /proto_hier_stats.c
parent166e39cbe52bf6d6e9075cfc5d8b348ac0fd0d79 (diff)
Create a new frame_data_sequence data type; it represents a dense
sequence of frame_data structures, indexed by the frame number. Extract the relevant bits of the capture_file data structure and move them to the frame_data_sequence, and move the relevant code from cfile.c and tweak it to handle frame_data_sequence structures. Have a possibly-null pointer to a frame_data_sequence structure in the capture_file structure; if it's null, we aren't keeping a sequence of frame_data structures (we don't keep that sequence when we're doing one-pass processing in TShark). Nothing in libwireshark should care about a capture_file structure; get rid of some unnecessary includes of cfile.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36881 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r--proto_hier_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c
index 4a7c2d6591..420e725e70 100644
--- a/proto_hier_stats.c
+++ b/proto_hier_stats.c
@@ -214,7 +214,7 @@ ph_stats_new(void)
tot_bytes = 0;
for (framenum = 1; framenum <= cfile.count; framenum++) {
- frame = cap_file_find_fdata(&cfile, framenum);
+ frame = frame_data_sequence_find(cfile.frames, framenum);
/* Create the progress bar if necessary.
We check on every iteration of the loop, so that