Create a new frame_data_sequence data type; it represents a dense
[obnox/wireshark/wip.git] / cfile.h
diff --git a/cfile.h b/cfile.h
index a14accc9e16223fef934ea127de49a6566b56c6b..83d230926744f9d35566886baec1ea156748f8d6 100644 (file)
--- a/cfile.h
+++ b/cfile.h
@@ -25,6 +25,8 @@
 #ifndef __CFILE_H__
 #define __CFILE_H__
 
+#include "frame_data_sequence.h"
+
 /* Current state of file. */
 typedef enum {
   FILE_CLOSED,                 /* No file open */
@@ -98,7 +100,7 @@ typedef struct _capture_file {
   union wtap_pseudo_header pseudo_header; /* Packet pseudo_header */
   guint8       pd[WTAP_MAX_PACKET_SIZE];  /* Packet data */
   /* frames */
-  void        *ptree_root;      /* Pointer to the root node */
+  frame_data_sequence *frames;  /* Sequence of frames, if we're keeping that information */
   guint32      first_displayed; /* Frame number of first frame displayed */
   guint32      last_displayed;  /* Frame number of last frame displayed */
   column_info  cinfo;           /* Column formatting information */
@@ -110,18 +112,4 @@ typedef struct _capture_file {
 
 extern void cap_file_init(capture_file *cf);
 
-extern frame_data *cap_file_add_fdata(capture_file *cf, frame_data *fdata);
-
-/*
- * Find the frame_data for the specified frame number.
- * Do some caching to make this work reasonably fast for
- * forward and backward sequential passes through the packets.
- */
-extern frame_data *cap_file_find_fdata(capture_file *cf, guint32 num);
-
-/*
- * Free up all the frame information for a capture file.
- */
-extern void cap_file_free_frames(capture_file *cf);
-
 #endif /* cfile.h */