#ifndef __CFILE_H__
#define __CFILE_H__
+#include <epan/epan.h>
+#include <epan/column-info.h>
#include <epan/dfilter/dfilter.h>
#include <epan/frame_data.h>
#include <epan/frame_data_sequence.h>
+#include <wiretap/wtap.h>
#ifdef __cplusplus
extern "C" {
SD_BACKWARD
} search_direction;
-/*
- * We store the frame_data structures in a radix tree, with 1024
- * elements per level. The leaf nodes are arrays of 1024 frame_data
- * structures; the nodes above them are arrays of 1024 pointers to
- * the nodes below them. The capture_file structure has a pointer
- * to the root node.
- *
- * As frame numbers are 32 bits, and as 1024 is 2^10, that gives us
- * up to 4 levels of tree.
- */
-#define LOG2_NODES_PER_LEVEL 10
-#define NODES_PER_LEVEL (1<<LOG2_NODES_PER_LEVEL)
+#ifdef WANT_PACKET_EDITOR
+/* XXX, where this struct should go? */
+typedef struct {
+ struct wtap_pkthdr phdr; /**< Modified packet header */
+ char *pd; /**< Modified packet data */
+} modified_frame_data;
+#endif
typedef struct _capture_file {
epan_t *epan;
#endif
gpointer window; /* Top-level window associated with file */
GTree *frames_user_comments; /* BST with user comments for frames (key = frame_data) */
+ gulong computed_elapsed;
+
+ guint32 cum_bytes;
+ const frame_data *ref;
+ frame_data *prev_dis;
+ frame_data *prev_cap;
} capture_file;
extern void cap_file_init(capture_file *cf);