_mip_version >= _val, \
"MIP version is less than %" PRIu64, _val)
+/*
+ * Asserts that the effective MIP version for `_clock_class` is equal to `_val`.
+ */
+#define BT_ASSERT_PRE_CC_MIP_VERSION_EQ(_clock_class, _val) \
+ BT_ASSERT_PRE_MIP_VERSION_EQ((_clock_class)->mip_version, _val)
+
/*
* Asserts that the effective MIP version for `_trace_class` is equal to `_val`.
*/
bt_uuid bt_clock_class_get_uuid(const struct bt_clock_class *clock_class)
{
BT_ASSERT_PRE_DEV_CLK_CLS_NON_NULL(clock_class);
+ BT_ASSERT_PRE_CC_MIP_VERSION_EQ(clock_class, 0);
return clock_class->uuid.value;
}
BT_ASSERT_PRE_CLK_CLS_NON_NULL(clock_class);
BT_ASSERT_PRE_UUID_NON_NULL(uuid);
BT_ASSERT_PRE_DEV_CLOCK_CLASS_HOT(clock_class);
+ BT_ASSERT_PRE_CC_MIP_VERSION_EQ(clock_class, 0);
bt_uuid_copy(clock_class->uuid.uuid, uuid);
clock_class->uuid.value = clock_class->uuid.uuid;
BT_LIB_LOGD("Set clock class's UUID: %!+K", clock_class);