From ea75976abd0ccf78161987eede3c0ed59df2f209 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 1 Oct 2014 16:10:54 -0400 Subject: [PATCH] Fix: set hidden attribute to all public mi functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Jérémie Galarneau Signed-off-by: David Goulet --- src/common/mi-lttng.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index a250546d7..cb30e507e 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -147,6 +147,7 @@ const char * const mi_lttng_element_snapshots = "snapshots"; * Those should never overlap by definition * (see struct lttng_event loglevel) */ +LTTNG_HIDDEN const char *mi_lttng_loglevel_string(int value) { switch (value) { @@ -205,6 +206,7 @@ const char *mi_lttng_loglevel_string(int value) } } +LTTNG_HIDDEN const char *mi_lttng_logleveltype_string(enum lttng_loglevel_type value) { switch (value) { @@ -219,6 +221,7 @@ const char *mi_lttng_logleveltype_string(enum lttng_loglevel_type value) } } +LTTNG_HIDDEN const char *mi_lttng_eventtype_string(enum lttng_event_type value) { switch (value) { @@ -241,6 +244,7 @@ const char *mi_lttng_eventtype_string(enum lttng_event_type value) } } +LTTNG_HIDDEN const char *mi_lttng_event_contexttype_string(enum lttng_event_context_type val) { switch (val) { @@ -279,6 +283,7 @@ const char *mi_lttng_event_contexttype_string(enum lttng_event_context_type val) } } +LTTNG_HIDDEN const char *mi_lttng_eventfieldtype_string(enum lttng_event_field_type val) { switch (val) { @@ -295,6 +300,7 @@ const char *mi_lttng_eventfieldtype_string(enum lttng_event_field_type val) } } +LTTNG_HIDDEN const char *mi_lttng_domaintype_string(enum lttng_domain_type value) { /* Note: This is a *duplicate* of get_domain_str from bin/lttng/utils.c */ @@ -313,6 +319,7 @@ const char *mi_lttng_domaintype_string(enum lttng_domain_type value) } } +LTTNG_HIDDEN const char *mi_lttng_buffertype_string(enum lttng_buffer_type value) { switch (value) { @@ -328,6 +335,7 @@ const char *mi_lttng_buffertype_string(enum lttng_buffer_type value) } } +LTTNG_HIDDEN const char *mi_lttng_calibratetype_string(enum lttng_calibrate_type val) { const char *ret; -- 2.34.1