Allow NULL clock name
[babeltrace.git] / include / babeltrace / ctf-ir / clock.h
index ec08810b6851eee8ed88f16f2da53fbada020a41..93d4cbef5a6c6d0d0b9abf3bb8f122d225071477 100644 (file)
@@ -43,7 +43,8 @@ struct bt_ctf_clock;
  *
  * Allocate a new clock setting its reference count to 1.
  *
- * @param name Name of the clock (will be copied).
+ * @param name Name of the clock (will be copied); can be set to NULL
+ *             for nameless clocks.
  *
  * Returns an allocated clock on success, NULL on error.
  */
@@ -237,6 +238,9 @@ extern const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock,
                const unsigned char *uuid);
 
+extern int64_t bt_ctf_clock_ns_from_value(struct bt_ctf_clock *clock,
+               uint64_t value);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.025845 seconds and 4 git commands to generate.