Specify callback to move packet in open_trace
[babeltrace.git] / include / babeltrace / ctf / types.h
index cebaca7ac8f19c516876163c1108540dd958a898..60749a6c9f8ec8b368413b19c47f84288025a270 100644 (file)
@@ -31,6 +31,8 @@
 #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 */
@@ -58,8 +60,11 @@ struct ctf_stream_pos {
        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
This page took 0.024475 seconds and 4 git commands to generate.