Implement bt_ctf_clock_value interface
[babeltrace.git] / include / babeltrace / ctf-writer / clock.h
index cb17ca2b0f2e0c529717aa4b4b8f5efa27e56c6d..7ee14c652fe589101018fa1e6a34507a218ebfa8 100644 (file)
 extern "C" {
 #endif
 
+/*
+ * 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);
+
 /*
  * bt_ctf_clock_get and bt_ctf_clock_put: increment and decrement the
  * refcount of the clock
This page took 0.029082 seconds and 4 git commands to generate.