Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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;
+}
const unsigned char *uuid);
extern struct bt_ctf_clock_value *bt_ctf_clock_value_create(
struct bt_ctf_clock_class *clock_class, uint64_t value);
+extern struct bt_ctf_clock_class *bt_ctf_clock_value_get_class(
+ struct bt_ctf_clock_value *clock_value);
extern int bt_ctf_clock_value_get_value(
struct bt_ctf_clock_value *clock_value, uint64_t *raw_value);
extern int bt_ctf_clock_value_get_value_ns_from_epoch(