From ce90ea45ccb269066ac1662f0ed7b451cb380de7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 25 Apr 2016 13:12:51 -0400 Subject: [PATCH] Fix: re-introduce exported symbols Keep those exported symbols for backward shared object compatibility. Signed-off-by: Mathieu Desnoyers --- include/lttng/ust-events.h | 5 +++++ liblttng-ust/lttng-context.c | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 1acba2ad..9f6aa062 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -722,6 +722,11 @@ struct cds_list_head *_lttng_get_sessions(void); struct lttng_enum *lttng_ust_enum_get(struct lttng_session *session, const char *enum_name); +/* For backward compatibility. Leave those exported symbols in place. */ +extern struct lttng_ctx *lttng_static_ctx; +void lttng_context_init(void); +void lttng_context_exit(void); + #ifdef __cplusplus } #endif diff --git a/liblttng-ust/lttng-context.c b/liblttng-ust/lttng-context.c index 4e5b3084..33a4cdd1 100644 --- a/liblttng-ust/lttng-context.c +++ b/liblttng-ust/lttng-context.c @@ -379,3 +379,14 @@ error: lttng_destroy_context(*ctx); return ret; } + +/* For backward compatibility. Leave those exported symbols in place. */ +struct lttng_ctx *lttng_static_ctx; + +void lttng_context_init(void) +{ +} + +void lttng_context_exit(void) +{ +} -- 2.34.1