-struct bt_clock_value *bt_event_borrow_clock_value(
- struct bt_event *event, struct bt_clock_class *clock_class)
+int bt_event_set_clock_value(struct bt_event *event,
+ struct bt_clock_class *clock_class, uint64_t raw_value,
+ bt_bool is_default)
+{
+ BT_ASSERT_PRE_NON_NULL(event, "Event");
+ BT_ASSERT_PRE_NON_NULL(clock_class, "Clock class");
+ BT_ASSERT_PRE_HOT(BT_TO_COMMON(event), "Event", ": %!+e", event);
+ BT_ASSERT_PRE(is_default,
+ "You can only set a default clock value as of this version.");
+ return bt_clock_value_set_set_clock_value(&event->cv_set, clock_class,
+ raw_value, is_default);
+}
+
+struct bt_clock_value *bt_event_borrow_default_clock_value(
+ struct bt_event *event)