From 6ccf68e9c4d330176d6a471f9bd81074c73b4536 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 23 Oct 2016 18:34:57 -0400 Subject: [PATCH] Hide new bt_ctf_field_path_* symbols MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/field-path.c | 3 +++ include/Makefile.am | 2 +- include/babeltrace/ctf-ir/field-path.h | 9 ++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/formats/ctf/ir/field-path.c b/formats/ctf/ir/field-path.c index d7eabf3e..b0156dcf 100644 --- a/formats/ctf/ir/field-path.c +++ b/formats/ctf/ir/field-path.c @@ -97,6 +97,7 @@ end: return new_path; } +BT_HIDDEN enum bt_ctf_scope bt_ctf_field_path_get_root_scope( const struct bt_ctf_field_path *field_path) { @@ -112,6 +113,7 @@ end: return scope; } +BT_HIDDEN int bt_ctf_field_path_get_index_count( const struct bt_ctf_field_path *field_path) { @@ -127,6 +129,7 @@ end: return ret; } +BT_HIDDEN int bt_ctf_field_path_get_index(const struct bt_ctf_field_path *field_path, int index) { diff --git a/include/Makefile.am b/include/Makefile.am index b6905cf6..027f2d32 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -27,7 +27,6 @@ babeltracectfirinclude_HEADERS = \ babeltrace/ctf-ir/field-types.h \ babeltrace/ctf-ir/event.h \ babeltrace/ctf-ir/event-class.h \ - babeltrace/ctf-ir/field-path.h \ babeltrace/ctf-ir/stream.h \ babeltrace/ctf-ir/packet.h \ babeltrace/ctf-ir/stream-class.h \ @@ -75,6 +74,7 @@ noinst_HEADERS = \ babeltrace/ctf-ir/packet-internal.h \ babeltrace/ctf-ir/trace-internal.h \ babeltrace/ctf-ir/validation-internal.h \ + babeltrace/ctf-ir/field-path.h \ babeltrace/ctf-writer/functor-internal.h \ babeltrace/trace-handle-internal.h \ babeltrace/compat/uuid.h \ diff --git a/include/babeltrace/ctf-ir/field-path.h b/include/babeltrace/ctf-ir/field-path.h index 40acfc8b..a5350768 100644 --- a/include/babeltrace/ctf-ir/field-path.h +++ b/include/babeltrace/ctf-ir/field-path.h @@ -45,7 +45,8 @@ struct bt_ctf_field_path; * * Returns the root node of a field path, or BT_CTF_SCOPE_UNKNOWN on error. */ -extern enum bt_ctf_scope bt_ctf_field_path_get_root_scope( +BT_HIDDEN +enum bt_ctf_scope bt_ctf_field_path_get_root_scope( const struct bt_ctf_field_path *field_path); /* @@ -57,7 +58,8 @@ extern enum bt_ctf_scope bt_ctf_field_path_get_root_scope( * * Returns the field path's index count, or a negative value on error. */ -extern int bt_ctf_field_path_get_index_count( +BT_HIDDEN +int bt_ctf_field_path_get_index_count( const struct bt_ctf_field_path *field_path); /* @@ -70,7 +72,8 @@ extern int bt_ctf_field_path_get_index_count( * * Returns a field path index, or INT_MIN on error. */ -extern int bt_ctf_field_path_get_index( +BT_HIDDEN +int bt_ctf_field_path_get_index( const struct bt_ctf_field_path *field_path, int index); -- 2.34.1