ir: move clock value accessors to writer header
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 19 Feb 2016 02:16:59 +0000 (21:16 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Feb 2016 19:56:53 +0000 (14:56 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-ir/clock.h
include/babeltrace/ctf-writer/clock.h

index 1b7a004d0fc544b4628d4de96c575772794673a6..ec08810b6851eee8ed88f16f2da53fbada020a41 100644 (file)
@@ -237,36 +237,6 @@ 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);
 
-/*
- * bt_ctf_clock_get_time: get a clock's current time value.
- *
- * Get the current time in nanoseconds since the clock's origin (offset and
- * offset_s attributes).
- *
- * @param clock Clock instance.
- * @param time Clock current time value (output).
- *
- * Returns 0 on success, a negative value on error.
- */
-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);
-
 #ifdef __cplusplus
 }
 #endif
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.025994 seconds and 4 git commands to generate.