From: Michael Jeanson Date: Wed, 10 Mar 2021 15:39:39 +0000 (-0500) Subject: Hide private context utils symbols X-Git-Tag: v2.13.0-rc1~317 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=cbbc1cdaf2ac58b06b951129548d5d01c4c1f014 Hide private context utils symbols The major SONAME bump to '1' gives us the opportunity to hide private symbols that should never have been visible. Change-Id: I458dbe5f3abc712543a035dad241c40df60dae55 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/ust-context-provider.h b/include/ust-context-provider.h index 0425a31d..cd845583 100644 --- a/include/ust-context-provider.h +++ b/include/ust-context-provider.h @@ -29,8 +29,6 @@ struct lttng_ust_context_provider { int lttng_ust_context_provider_register(struct lttng_ust_context_provider *provider); void lttng_ust_context_provider_unregister(struct lttng_ust_context_provider *provider); -int lttng_context_is_app(const char *name); - void lttng_ust_context_set_session_provider(const char *name, size_t (*get_size)(struct lttng_ctx_field *field, size_t offset), void (*record)(struct lttng_ctx_field *field, @@ -48,7 +46,5 @@ int lttng_ust_context_set_provider_rcu(struct lttng_ctx **_ctx, struct lttng_channel *chan), void (*get_value)(struct lttng_ctx_field *field, struct lttng_ctx_value *value)); -int lttng_context_add_rcu(struct lttng_ctx **ctx_p, - const struct lttng_ctx_field *f); #endif /* _LTTNG_UST_CONTEXT_PROVIDER_H */ diff --git a/liblttng-ust/context-internal.h b/liblttng-ust/context-internal.h index 8c3861ec..4a546d35 100644 --- a/liblttng-ust/context-internal.h +++ b/liblttng-ust/context-internal.h @@ -32,6 +32,13 @@ void lttng_remove_context_field(struct lttng_ctx **ctx_p, LTTNG_HIDDEN void lttng_destroy_context(struct lttng_ctx *ctx); +LTTNG_HIDDEN +int lttng_context_add_rcu(struct lttng_ctx **ctx_p, + const struct lttng_ctx_field *f); + +LTTNG_HIDDEN +int lttng_context_is_app(const char *name); + LTTNG_HIDDEN void lttng_context_vtid_reset(void); LTTNG_HIDDEN diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 5d9cdc0a..80e0b95a 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -13,6 +13,7 @@ #include "ust-bitfield.h" #include "ust-compat.h" #include "clock.h" +#include "context-internal.h" #include "lttng-tracer.h" #include "../libringbuffer/frontend_types.h" diff --git a/liblttng-ust/lttng-tracer-core.h b/liblttng-ust/lttng-tracer-core.h index 5cc095cd..7b503081 100644 --- a/liblttng-ust/lttng-tracer-core.h +++ b/liblttng-ust/lttng-tracer-core.h @@ -82,7 +82,6 @@ void lttng_ust_dummy_record(struct lttng_ctx_field *field, struct lttng_channel *chan); void lttng_ust_dummy_get_value(struct lttng_ctx_field *field, struct lttng_ctx_value *value); -int lttng_context_is_app(const char *name); LTTNG_HIDDEN void lttng_event_notifier_notification_send(