ir: move clock value accessors to writer header
[babeltrace.git] / include / babeltrace / ctf-writer / clock.h
index cb17ca2b0f2e0c529717aa4b4b8f5efa27e56c6d..1bacc34e2aa14a57894b5a49f2fd3e9c566cda54 100644 (file)
 extern "C" {
 #endif
 
+extern int bt_ctf_clock_get_time(struct bt_ctf_clock *clock, int64_t *time);
+
+/*
+ * bt_ctf_clock_set_time: set a clock's current time value.
+ *
+ * Set the current time in nanoseconds since the clock's origin (offset and
+ * offset_s attributes). Defaults to 0.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_clock_set_time(struct bt_ctf_clock *clock,
+               int64_t time);
+
+extern uint64_t bt_ctf_clock_get_value(struct bt_ctf_clock *clock);
+
+extern int bt_ctf_clock_set_value(struct bt_ctf_clock *clock,
+               uint64_t value);
+
 /*
  * bt_ctf_clock_get and bt_ctf_clock_put: increment and decrement the
  * refcount of the clock
This page took 0.024073 seconds and 4 git commands to generate.