#include <babeltrace/trace-ir/clock-class.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/common-internal.h>
#include <babeltrace/object-pool-internal.h>
#include <babeltrace/compat/uuid-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/property-internal.h>
+#include <babeltrace/assert-internal.h>
#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
BT_HIDDEN
bt_bool bt_clock_class_is_valid(struct bt_clock_class *clock_class);
+static inline
+int bt_clock_class_clock_value_from_ns_from_origin(
+ struct bt_clock_class *cc, int64_t ns_from_origin,
+ uint64_t *raw_value)
+{
+ BT_ASSERT(cc);
+
+ return bt_common_clock_value_from_ns_from_origin(cc->offset_seconds,
+ cc->offset_cycles, cc->frequency, ns_from_origin,
+ raw_value);
+}
+
#endif /* BABELTRACE_TRACE_IR_CLOCK_CLASS_INTERNAL_H */