From 40f179553947d55db4e723fbdab71baf772e0505 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 19 Nov 2019 12:26:36 -0500 Subject: [PATCH] param-validation: make symbols hidden 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2409 Tested-by: jenkins --- src/plugins/common/param-validation/param-validation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/common/param-validation/param-validation.h b/src/plugins/common/param-validation/param-validation.h index 3113ff4d..27277edf 100644 --- a/src/plugins/common/param-validation/param-validation.h +++ b/src/plugins/common/param-validation/param-validation.h @@ -29,6 +29,8 @@ #include /* For __MINGW_PRINTF_FORMAT. */ +#include + #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, -- 2.34.1