- ret = bt_ctf_clock_set_value(clock, value);
-end:
- return ret;
-}
-
-uint64_t bt_ctf_clock_get_value(struct bt_ctf_clock *clock)
-{
- uint64_t ret = -1ULL;
-
- if (!clock) {
- goto end;
- }
-
- if (!clock->has_value) {
- /*
- * Clock belongs to a non-writer mode trace and thus
- * this function is disabled.
- */
- goto end;
- }
-
- ret = clock->value;
-end:
- return ret;
-}
-
-int bt_ctf_clock_set_value(struct bt_ctf_clock *clock, uint64_t value)
-{
- int ret = 0;
-
- if (!clock) {
- ret = -1;
- goto end;
- }
-
- if (!clock->has_value) {
- /*
- * Clock belongs to a non-writer mode trace and thus
- * this function is disabled.
- */
- ret = -1;
- goto end;
- }
-
- /* Timestamps are strictly monotonic */
- if (value < clock->value) {