#include "common/assert.h"
#include "lib/func-status.h"
-BT_HIDDEN
void bt_clock_snapshot_destroy(struct bt_clock_snapshot *clock_snapshot)
{
BT_ASSERT(clock_snapshot);
g_free(clock_snapshot);
}
-BT_HIDDEN
struct bt_clock_snapshot *bt_clock_snapshot_new(
struct bt_clock_class *clock_class)
{
return ret;
}
-BT_HIDDEN
struct bt_clock_snapshot *bt_clock_snapshot_create(
struct bt_clock_class *clock_class)
{
return clock_snapshot;
}
-BT_HIDDEN
void bt_clock_snapshot_recycle(struct bt_clock_snapshot *clock_snapshot)
{
struct bt_clock_class *clock_class;
bt_object_put_ref(clock_class);
}
+BT_EXPORT
uint64_t bt_clock_snapshot_get_value(
const struct bt_clock_snapshot *clock_snapshot)
{
return clock_snapshot->value_cycles;
}
+BT_EXPORT
enum bt_clock_snapshot_get_ns_from_origin_status
bt_clock_snapshot_get_ns_from_origin(
const struct bt_clock_snapshot *clock_snapshot,
return ret;
}
+BT_EXPORT
const struct bt_clock_class *bt_clock_snapshot_borrow_clock_class_const(
const struct bt_clock_snapshot *clock_snapshot)
{