param-validation: make symbols hidden
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 19 Nov 2019 17:26:36 +0000 (12:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Nov 2019 19:24:17 +0000 (14:24 -0500)
This convenience library is linked statically with the various plugins
that use it.  The symbols are currently not marked as hidden, which
causes the plugins that use it (e.g. babeltrace-plugin-ctf.so) to expose
them publically.  Sad.

Mark the symbols as hidden to avoid that.

Change-Id: If099b529f7c126f5defd5242486009c3fd4195eb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2409
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/common/param-validation/param-validation.h

index 3113ff4debf6b8e5b78ea3b78822687c9c12d97e..27277edfa6ceff1d81f3948536daa46a6803e75d 100644 (file)
@@ -29,6 +29,8 @@
 
 #include <stdio.h> /* For __MINGW_PRINTF_FORMAT. */
 
+#include <common/macros.h>
+
 #ifdef __MINGW_PRINTF_FORMAT
 # define BT_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
 #else
@@ -98,11 +100,13 @@ struct bt_param_validation_map_value_entry_descr {
        const struct bt_param_validation_value_descr value_descr;
 };
 
+BT_HIDDEN
 enum bt_param_validation_status bt_param_validation_validate(
                const bt_value *params,
                const struct bt_param_validation_map_value_entry_descr *entries,
                gchar **error);
 
+BT_HIDDEN
 __attribute__((format(BT_PRINTF_FORMAT, 2, 3)))
 enum bt_param_validation_status bt_param_validation_error(
                struct bt_param_validation_context *ctx,
This page took 0.025367 seconds and 4 git commands to generate.