From: David Goulet Date: Wed, 1 Oct 2014 20:10:54 +0000 (-0400) Subject: Fix: set hidden attribute to all public mi functions X-Git-Tag: v2.6.0-rc1~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ea75976abd0ccf78161987eede3c0ed59df2f209;p=lttng-tools.git Fix: set hidden attribute to all public mi functions Reported-by: Jérémie Galarneau Signed-off-by: David Goulet --- 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;