Introduce API compatibility macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Apr 2021 13:36:07 +0000 (09:36 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 14:59:36 +0000 (10:59 -0400)
commitcbc06a3bd9abe653eaf278cdf4be8bf28dcca267
treed1281d21644d5b83192a944077d3026e5d5f31a5
parent34f7f1421e4869381acf65d59cb1abb37df440df
Introduce API compatibility macros

Introduce API compatibility macros, allowing to compile-out backward
compatibility for older API major versions.

The initial use-case introduced here is renaming of the tracepoint(),
do_tracepoint() and tracepoint_enabled() macros to add the lttng_ust_
prefix. The old macros are only defined when API compatibility with
soname 0 is enabled.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I39e5eb4ae6ceea91dd039d52c429a791bb11ce66
23 files changed:
doc/examples/demo/demo.c
doc/examples/easy-ust/sample.c
doc/examples/gen-tp/sample.c
doc/examples/hello-static-lib/hello.c
include/Makefile.am
include/lttng/tracepoint.h
include/lttng/ust-api-compat.h [new file with mode: 0644]
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.c
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile.c
src/lib/lttng-ust-dl/lttng-ust-dl.c
src/lib/lttng-ust-java-agent/jni/jul/lttng_ust_jul.c
src/lib/lttng-ust-java-agent/jni/log4j/lttng_ust_log4j.c
src/lib/lttng-ust-java/LTTngUst.c
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
src/lib/lttng-ust-pthread-wrapper/lttng-ust-pthread.c
src/lib/lttng-ust-python-agent/lttng_ust_python.c
src/lib/lttng-ust/lttng-ust-statedump.c
tests/benchmark/bench.c
tests/compile/ctf-types/ctf-types.c
tests/compile/hello-many/hello-many.c
tests/compile/hello/hello.c
tests/compile/same_line_tracepoint/same_line_tracepoint.c
tests/compile/test-app-ctx/hello.c
This page took 0.028186 seconds and 4 git commands to generate.