/*
* Weak. These are mostly used to generate log messages or to append
- * error causes. They are mutually exclusive, only one of them must is
+ * error causes. They are mutually exclusive, only one of them must be
* set.
*/
bt_self_component *self_comp;
bt_self_component *self_comp;
/* Weak */
- bt_self_message_iterator *pc_msg_iter;
+ bt_self_message_iterator *self_msg_iter;
/* Weak, belongs to ctf_fs_trace */
struct ctf_fs_ds_file_group *ds_file_group;
size_t ds_file_info_index;
/* Owned by this */
- struct bt_msg_iter *msg_iter;
+ 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