Add UUID accessors to CTF-IR clock
[babeltrace.git] / include / babeltrace / ctf-ir / clock.h
index c1ae948a32af5f0c3ab83e8ef1d5cdd22179973d..dea3f2b6c5d0b2a970c48724618809100ab464d7 100644 (file)
@@ -208,6 +208,31 @@ extern int bt_ctf_clock_get_is_absolute(struct bt_ctf_clock *clock);
 extern int bt_ctf_clock_set_is_absolute(struct bt_ctf_clock *clock,
                int is_absolute);
 
+/*
+ * bt_ctf_clock_get_uuid: get a clock's UUID.
+ *
+ * Get the clock's UUID.
+ *
+ * @param clock Clock instance.
+ *
+ * Returns a pointer to the clock's UUID (16 byte array) on success,
+ * NULL on error.
+ */
+extern const unsigned char *bt_ctf_clock_get_uuid(struct bt_ctf_clock *clock);
+
+/*
+ * bt_ctf_clock_set_uuid: set a clock's UUID.
+ *
+ * Set a clock's UUID.
+ *
+ * @param clock Clock instance.
+ * @param uuid A 16-byte array containing a UUID.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_clock_set_uuid(struct bt_ctf_clock *clock,
+                const unsigned char *uuid);
+
 /*
  * bt_ctf_clock_get_time: get a clock's current time value.
  *
This page took 0.024732 seconds and 4 git commands to generate.