From: Jérémie Galarneau Date: Mon, 24 Oct 2016 01:34:13 +0000 (-0400) Subject: Hide bt_ctf_writer_get_trace() X-Git-Tag: v1.5.0-rc1~4 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=abd69417bcbf0c66afc5f94c2164397f8df7915f;p=babeltrace.git Hide bt_ctf_writer_get_trace() Signed-off-by: Jérémie Galarneau --- 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. *