#define _LTTNG_UST_CONTEXT_PROVIDER_H
#include <stddef.h>
+#include <lttng/ust-config.h>
#include <lttng/ust-events.h>
#include "common/dynamic-type.h"
/* End of base ABI. Fields below should be used after checking struct_size. */
};
+/* Custom upgrade 2.12 to 2.13 */
+#ifndef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+#define lttng_ust_context_provider_register lttng_ust_context_provider_register1
+#define lttng_ust_context_provider_unregister lttng_ust_context_provider_unregister1
+#endif
+
/*
* Returns an opaque pointer on success, which must be passed to
* lttng_ust_context_provider_unregister for unregistration. Returns
return NULL;
}
-struct lttng_ust_registered_context_provider *lttng_ust_context_provider_register(struct lttng_ust_context_provider *provider)
+static
+struct lttng_ust_registered_context_provider *lttng_ust_context_provider_register_orig(struct lttng_ust_context_provider *provider)
{
struct lttng_ust_registered_context_provider *reg_provider = NULL;
struct cds_hlist_head *head;
return reg_provider;
}
-void lttng_ust_context_provider_unregister(struct lttng_ust_registered_context_provider *reg_provider)
+static
+void lttng_ust_context_provider_unregister_orig(struct lttng_ust_registered_context_provider *reg_provider)
{
lttng_ust_alloc_tls();
error_event_field_alloc:
return ret;
}
+
+/* Custom upgrade 2.12 to 2.13 */
+#undef lttng_ust_context_provider_register
+#undef lttng_ust_context_provider_unregister
+struct lttng_ust_registered_context_provider *lttng_ust_context_provider_register1(struct lttng_ust_context_provider *provider)
+ __attribute ((alias ("lttng_ust_context_provider_register_orig")));
+void lttng_ust_context_provider_unregister1(struct lttng_ust_registered_context_provider *reg_provider)
+ __attribute ((alias ("lttng_ust_context_provider_unregister_orig")));
+
+#ifdef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+struct lttng_ust_registered_context_provider *lttng_ust_context_provider_register(struct lttng_ust_context_provider *provider)
+ __attribute ((alias ("lttng_ust_context_provider_register_orig")));
+void lttng_ust_context_provider_unregister(struct lttng_ust_registered_context_provider *reg_provider)
+ __attribute ((alias ("lttng_ust_context_provider_unregister_orig")));
+#endif