-struct bt_port_output_message_iterator {
- struct bt_message_iterator base;
- struct bt_graph *graph; /* Owned by this */
- struct bt_component_sink *colander; /* Owned by this */
+ /*
+ * Timestamp of the last received message (or INT64_MIN in the
+ * beginning, or after a seek to beginning).
+ */
+ int64_t last_ns_from_origin;
+
+ struct {
+ enum {
+ /* We haven't recorded clock properties yet. */
+ CLOCK_EXPECTATION_UNSET,
+
+ /* Expect to have no clock. */
+ CLOCK_EXPECTATION_NONE,
+
+ /* Clock with origin_is_unix_epoch true.*/
+ CLOCK_EXPECTATION_ORIGIN_UNIX,
+
+ /* Clock with origin_is_unix_epoch false, with a UUID.*/
+ CLOCK_EXPECTATION_ORIGIN_OTHER_UUID,
+
+ /* Clock with origin_is_unix_epoch false, without a UUID.*/
+ CLOCK_EXPECTATION_ORIGIN_OTHER_NO_UUID,
+ } type;
+
+ /*
+ * Expected UUID of the clock, if `type`is CLOCK_EXPECTATION_ORIGIN_OTHER_UUID.
+ *
+ * If the clock's origin is the unix epoch, the UUID is
+ * irrelevant (as the clock will be correlatable with other
+ * clocks having the same origin).
+ */
+ bt_uuid_t uuid;
+ } clock_expectation;