#include <glib.h>
#include <stdio.h>
+struct bt_stream_callbacks;
+
struct packet_index {
off_t offset; /* offset of the packet in the file, in bytes */
off_t data_offset; /* offset of data within the packet, in bits */
char *base; /* mmap base address */
ssize_t offset; /* offset from base, in bits. EOF for end of file. */
size_t cur_index; /* current index in packet index */
+ void (*move_pos_slow)(struct ctf_stream_pos *pos, size_t offset,
+ int whence); /* function called to switch packet */
int dummy; /* dummy position, for length calculation */
+ struct bt_stream_callbacks *cb; /* Callbacks registered for iterator. */
};
static inline