bt_ctf_event_set_clock_value() does not need a clock class
[babeltrace.git] / formats / ctf / ir / event.c
index 95168a573ebf60dda718acb71b495785b740a28b..c553f7a707eff35e4d4a024a91128a675583215b 100644 (file)
@@ -582,18 +582,17 @@ end:
 }
 
 int bt_ctf_event_set_clock_value(struct bt_ctf_event *event,
-               struct bt_ctf_clock_class *clock_class,
                struct bt_ctf_clock_value *value)
 {
        int ret = 0;
 
-       if (!event || !clock_class || !value || event->frozen) {
+       if (!event || !value || event->frozen) {
                ret = -1;
                goto end;
        }
 
-       g_hash_table_insert(event->clock_values, bt_get(clock_class),
-               bt_get(value));
+       g_hash_table_insert(event->clock_values,
+               bt_ctf_clock_value_get_class(value), bt_get(value));
 end:
        return ret;
 }
This page took 0.02405 seconds and 4 git commands to generate.