+/*
+ * Update the stream position for to the current event. This moves to
+ * the next packet if we are located at the end of the current packet.
+ */
+static inline
+void ctf_pos_get_event(struct ctf_stream_pos *pos)
+{
+ assert(pos->offset <= pos->content_size);
+ if (pos->offset == pos->content_size) {
+ printf_debug("ctf_packet_seek (before call): %zd\n",
+ pos->offset);
+ pos->packet_seek(&pos->parent, 0, SEEK_CUR);
+ printf_debug("ctf_packet_seek (after call): %zd\n",
+ pos->offset);
+ }
+}
+
+void ctf_print_timestamp(FILE *fp, struct ctf_stream *stream,
+ uint64_t timestamp);
+