aboutsummaryrefslogtreecommitdiffstats
path: root/frame_data_sequence.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-27 04:11:37 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-27 04:11:37 +0000
commitf43797cf42cd34d217caa251566789f2a38e5424 (patch)
tree0348c7d60169fd31d87d96e4b7c6337cededc9a0 /frame_data_sequence.h
parent9e2ecb8d7af151e508b363a5d1d6462129bf5d0e (diff)
Make the frame_data_sequence structure opaque, and move some other
implementation details into frame_data_sequence.c as well. svn path=/trunk/; revision=36886
Diffstat (limited to 'frame_data_sequence.h')
-rw-r--r--frame_data_sequence.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/frame_data_sequence.h b/frame_data_sequence.h
index 8f59cdb20b..24bd4ccded 100644
--- a/frame_data_sequence.h
+++ b/frame_data_sequence.h
@@ -25,23 +25,7 @@
#ifndef __FRAME_DATA_SEQUENCE_H__
#define __FRAME_DATA_SEQUENCE_H__
-/*
- * 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)
-
-typedef struct {
- guint32 count; /* Total number of frames */
- void *ptree_root; /* Pointer to the root node */
-} frame_data_sequence;
+typedef struct _frame_data_sequence frame_data_sequence;
extern frame_data_sequence *new_frame_data_sequence(void);