X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fmessage%2Fiterator.h;h=52a1c046530c3e018d23a44a5dae88c90b78f33e;hb=2e1b56154a3032b52687751ed2e5c1a8a5134f7c;hp=8014d1fad536c27d8fbd97772a7c014035f17e43;hpb=f2fb1b3297ca0bc13b53189a063b63944be7fae9;p=babeltrace.git diff --git a/src/lib/graph/message/iterator.h b/src/lib/graph/message/iterator.h index 8014d1fa..52a1c046 100644 --- a/src/lib/graph/message/iterator.h +++ b/src/lib/graph/message/iterator.h @@ -85,6 +85,11 @@ typedef enum bt_component_class_message_iterator_can_seek_beginning_method_statu (*bt_self_component_port_input_message_iterator_can_seek_beginning_method)( void *, bt_bool *); +struct bt_self_message_iterator_configuration { + bool frozen; + bool can_seek_forward; +}; + struct bt_self_component_port_input_message_iterator { struct bt_object base; GPtrArray *msgs; @@ -92,6 +97,7 @@ struct bt_self_component_port_input_message_iterator { struct bt_port *upstream_port; /* Weak */ struct bt_connection *connection; /* Weak */ struct bt_graph *graph; /* Weak */ + struct bt_self_message_iterator_configuration config; /* * Array of @@ -116,9 +122,13 @@ struct bt_self_component_port_input_message_iterator { struct { bt_self_component_port_input_message_iterator_next_method next; + + /* These two are always both set or both unset. */ bt_self_component_port_input_message_iterator_seek_ns_from_origin_method seek_ns_from_origin; - bt_self_component_port_input_message_iterator_seek_beginning_method seek_beginning; bt_self_component_port_input_message_iterator_can_seek_ns_from_origin_method can_seek_ns_from_origin; + + /* These two are always both set or both unset. */ + bt_self_component_port_input_message_iterator_seek_beginning_method seek_beginning; bt_self_component_port_input_message_iterator_can_seek_beginning_method can_seek_beginning; } methods;