return borrow_event((void *) message);
}
-enum bt_clock_snapshot_state
+const struct bt_clock_snapshot *
bt_message_event_borrow_default_clock_snapshot_const(
- const struct bt_message *msg,
- const struct bt_clock_snapshot **snapshot)
+ const struct bt_message *msg)
{
struct bt_message_event *event_msg = (void *) msg;
struct bt_stream_class *stream_class;
BT_ASSERT_PRE(stream_class->default_clock_class,
"Message's stream's class has no default clock class: "
"%![msg-]+n, %![sc-]+S", msg, stream_class);
- BT_ASSERT_PRE_NON_NULL(snapshot, "Clock snapshot (output)");
- *snapshot = event_msg->default_cs;
- return BT_CLOCK_SNAPSHOT_STATE_KNOWN;
+ return event_msg->default_cs;
}
const bt_clock_class *