From 72bd645e7416792100aed8c54f9a346c6c2f81b6 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 18 Feb 2016 21:15:05 -0500 Subject: [PATCH] ir: move bt_ctf_stream_class_set_clock() to writer header MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- include/babeltrace/ctf-ir/stream-class.h | 15 --------------- include/babeltrace/ctf-writer/stream-class.h | 15 +++++++++++++++ tests/lib/test_ctf_writer.c | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/babeltrace/ctf-ir/stream-class.h b/include/babeltrace/ctf-ir/stream-class.h index ca929afb..433fc563 100644 --- a/include/babeltrace/ctf-ir/stream-class.h +++ b/include/babeltrace/ctf-ir/stream-class.h @@ -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. * diff --git a/include/babeltrace/ctf-writer/stream-class.h b/include/babeltrace/ctf-writer/stream-class.h index 32096086..139165a3 100644 --- a/include/babeltrace/ctf-writer/stream-class.h +++ b/include/babeltrace/ctf-writer/stream-class.h @@ -36,6 +36,21 @@ 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. diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index a2fbd2e4..eefee00e 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include -- 2.34.1