ir: move bt_ctf_stream_class_set_clock() to writer header
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 19 Feb 2016 02:15:05 +0000 (21:15 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Feb 2016 19:52:48 +0000 (14:52 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ctf-ir/stream-class.h
include/babeltrace/ctf-writer/stream-class.h
tests/lib/test_ctf_writer.c

index ca929afbb9831efd85f6aa956a14eb843927fd50..433fc563ba54be17ae3d5de2ceeeae697abf9d58 100644 (file)
@@ -105,21 +105,6 @@ extern int bt_ctf_stream_class_set_name(
 extern struct bt_ctf_clock *bt_ctf_stream_class_get_clock(
                struct bt_ctf_stream_class *stream_class);
 
-/*
- * bt_ctf_stream_class_set_clock: assign a clock to a stream class.
- *
- * Assign a clock to a stream class. This clock will be sampled each time an
- * event is appended to an instance of this stream class.
- *
- * @param stream_class Stream class.
- * @param clock Clock to assign to the provided stream class.
- *
- * Returns 0 on success, a negative value on error.
- */
-extern int bt_ctf_stream_class_set_clock(
-               struct bt_ctf_stream_class *stream_class,
-               struct bt_ctf_clock *clock);
-
 /*
  * bt_ctf_stream_class_get_id: Get a stream class' id.
  *
index 32096086cb3ea38816cee2c4f09a46dece9e9cd8..139165a36d0f5b09caa6fc31e40ae5b0ce0129dd 100644 (file)
 extern "C" {
 #endif
 
+/*
+ * bt_ctf_stream_class_set_clock: assign a clock to a stream class.
+ *
+ * Assign a clock to a stream class. This clock will be sampled each time an
+ * event is appended to an instance of this stream class.
+ *
+ * @param stream_class Stream class.
+ * @param clock Clock to assign to the provided stream class.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_stream_class_set_clock(
+               struct bt_ctf_stream_class *stream_class,
+               struct bt_ctf_clock *clock);
+
 /*
  * bt_ctf_stream_class_get and bt_ctf_stream_class_put: increment and
  * decrement the stream class' reference count.
index a2fbd2e4a3fbd1544f5b7f39eb30441d5391f18f..eefee00eb0d8806c13b163115c4f2891b84098bb 100644 (file)
@@ -25,7 +25,7 @@
 #include <babeltrace/ctf-writer/event.h>
 #include <babeltrace/ctf-writer/event-types.h>
 #include <babeltrace/ctf-writer/event-fields.h>
-#include <babeltrace/ctf-ir/stream-class.h>
+#include <babeltrace/ctf-writer/stream-class.h>
 #include <babeltrace/ref.h>
 #include <babeltrace/ctf/events.h>
 #include <babeltrace/values.h>
This page took 0.026973 seconds and 4 git commands to generate.