iterator: save original next callback in iterator struct
[babeltrace.git] / src / lib / graph / message / iterator.h
index 1ecaa95a991d29329a2816d1ffcc6dd0ca160bca..a174f3e9c17f99c4fb879c7db4c067c314250f5a 100644 (file)
@@ -131,6 +131,14 @@ struct bt_self_component_port_input_message_iterator {
                 * send is the first of the queue).
                 */
                GQueue *msgs;
+
+               /*
+                * After auto-seeking, we replace the iterator's `next` callback
+                * with our own, which returns the contents of the `msgs` queue.
+                * This field is where we save the original callback, so we can
+                * restore it.
+                */
+               void *original_next_callback;
        } auto_seek;
 
        void *user_data;
This page took 0.023152 seconds and 4 git commands to generate.