Add bt_ctf_clock_value_get_class()
[babeltrace.git] / formats / ctf / ir / clock-class.c
index c51b5aabf6bbde4e5df4a440d88fcef8ee8088da..66f7f440dd71a0e63228f9acbe27277afbbedd9f 100644 (file)
@@ -480,3 +480,18 @@ int bt_ctf_clock_value_get_value_ns_from_epoch(struct bt_ctf_clock_value *value,
 end:
        return ret;
 }
 end:
        return ret;
 }
+
+struct bt_ctf_clock_class *bt_ctf_clock_value_get_class(
+               struct bt_ctf_clock_value *clock_value)
+{
+       struct bt_ctf_clock_class *clock_class = NULL;
+
+       if (!clock_value) {
+               goto end;
+       }
+
+       clock_class = bt_get(clock_value->clock_class);
+
+end:
+       return clock_class;
+}
This page took 0.022997 seconds and 4 git commands to generate.