Save and restore error in ctf_fs_iterator_next, muxer_msg_iter_do_next
[babeltrace.git] / src / plugins / ctf / fs-src / fs.h
index 95fffa249fa274e4afec2e70871f604173219995..a6594b1c234ab603e9998349cf0ec794ccac55e6 100644 (file)
@@ -194,6 +194,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.023006 seconds and 4 git commands to generate.