X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fmessage%2Fiterator.h;fp=src%2Flib%2Fgraph%2Fmessage%2Fiterator.h;h=93d9aa23e122f81d8d0eef56c18bd07b7a3dc389;hb=ca02df0ad8ae9a1a3640956d91ca31059d0b203a;hp=b8a9dfa2f65e090cb0cd7840360d66e4ba261ffe;hpb=51f97fcc8c58d17aa224c150735f7e256e796f4e;p=babeltrace.git diff --git a/src/lib/graph/message/iterator.h b/src/lib/graph/message/iterator.h index b8a9dfa2..93d9aa23 100644 --- a/src/lib/graph/message/iterator.h +++ b/src/lib/graph/message/iterator.h @@ -103,6 +103,27 @@ struct bt_self_component_port_input_message_iterator { struct bt_connection *connection; /* Weak */ struct bt_graph *graph; /* Weak */ + /* + * Array of + * `struct bt_self_component_port_input_message_iterator *` + * (weak). + * + * This is an array of upstream message iterators on which this + * iterator depends. The references are weak: an upstream + * message iterator is responsible for removing its entry within + * this array on finalization/destruction. + */ + GPtrArray *upstream_msg_iters; + + /* + * Downstream message iterator which depends on this message + * iterator (weak). + * + * This can be `NULL` if this message iterator's owner is a sink + * component. + */ + struct bt_self_component_port_input_message_iterator *downstream_msg_iter; + struct { bt_self_component_port_input_message_iterator_next_method next; bt_self_component_port_input_message_iterator_seek_ns_from_origin_method seek_ns_from_origin;