ctf: read packet sequence number from index
[babeltrace.git] / src / plugins / ctf / fs-src / fs.h
index 95fffa249fa274e4afec2e70871f604173219995..78faded2a0c59c1e66ea283e3cff62b9487f5ba0 100644 (file)
@@ -129,6 +129,11 @@ struct ctf_fs_ds_index_entry {
         * (in ns since EPOCH).
         */
        int64_t timestamp_begin_ns, timestamp_end_ns;
+
+       /*
+        * Packet sequence number, or UINT64_MAX if not present in the index.
+        */
+       uint64_t packet_seq_num;
 };
 
 struct ctf_fs_ds_index {
@@ -194,6 +199,14 @@ struct ctf_fs_msg_iter_data {
 
        /* Owned by this */
        struct ctf_msg_iter *msg_iter;
+
+       /*
+        * Saved error.  If we hit an error in the _next method, but have some
+        * messages ready to return, we save the error here and return it on
+        * the next _next call.
+        */
+       bt_component_class_message_iterator_next_method_status next_saved_status;
+       const struct bt_error *next_saved_error;
 };
 
 BT_HIDDEN
This page took 0.025866 seconds and 4 git commands to generate.