From abd69417bcbf0c66afc5f94c2164397f8df7915f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 23 Oct 2016 21:34:13 -0400 Subject: [PATCH] Hide bt_ctf_writer_get_trace() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/writer/writer.c | 1 + include/babeltrace/ctf-writer/writer-internal.h | 10 ++++++++++ include/babeltrace/ctf-writer/writer.h | 10 ---------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/formats/ctf/writer/writer.c b/formats/ctf/writer/writer.c index 6c294931..8f7fd9eb 100644 --- a/formats/ctf/writer/writer.c +++ b/formats/ctf/writer/writer.c @@ -125,6 +125,7 @@ void bt_ctf_writer_destroy(struct bt_object *obj) g_free(writer); } +BT_HIDDEN struct bt_ctf_trace *bt_ctf_writer_get_trace(struct bt_ctf_writer *writer) { struct bt_ctf_trace *trace = NULL; diff --git a/include/babeltrace/ctf-writer/writer-internal.h b/include/babeltrace/ctf-writer/writer-internal.h index 3fa03b59..b7da4b76 100644 --- a/include/babeltrace/ctf-writer/writer-internal.h +++ b/include/babeltrace/ctf-writer/writer-internal.h @@ -47,4 +47,14 @@ struct bt_ctf_writer { BT_HIDDEN void bt_ctf_writer_freeze(struct bt_ctf_writer *writer); +/* + * bt_ctf_writer_get_trace: Get a writer's associated trace. + * + * @param writer Writer instance. + * + * Return the writer's associated instance, NULL on error. + */ +BT_HIDDEN +struct bt_ctf_trace *bt_ctf_writer_get_trace(struct bt_ctf_writer *writer); + #endif /* BABELTRACE_CTF_WRITER_WRITER_INTERNAL_H */ diff --git a/include/babeltrace/ctf-writer/writer.h b/include/babeltrace/ctf-writer/writer.h index 8cfa094c..affc6503 100644 --- a/include/babeltrace/ctf-writer/writer.h +++ b/include/babeltrace/ctf-writer/writer.h @@ -53,16 +53,6 @@ struct bt_ctf_clock; */ extern struct bt_ctf_writer *bt_ctf_writer_create(const char *path); -/* - * bt_ctf_writer_get_trace: Get a writer's associated trace. - * - * @param writer Writer instance. - * - * Return the writer's associated instance, NULL on error. - */ -extern struct bt_ctf_trace *bt_ctf_writer_get_trace( - struct bt_ctf_writer *writer); - /* * bt_ctf_writer_create_stream: create a stream instance. * -- 2.34.1