The ABI bump gives us the opportunity to namespace all public symbols
under the 'lttng_ust_' prefix. Namespace all API symbols and macros
under 'lttng_ust_' / 'LTTNG_UST_' and add compat macros to keep
compatibility with the previous API.
Change-Id: I1517464f5c50b890bdcf2825d10be1690a699eac
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#include <lttng/ust-api-compat.h>
#include <string.h>
#include <lttng/ust-api-compat.h>
#include <string.h>
-#define __LTTNG_UST_NULL_STRING "(null)"
+#define LTTNG_UST__NULL_STRING "(null)"
#undef tp_list_for_each_entry_rcu
#define tp_list_for_each_entry_rcu(pos, head, member) \
#undef tp_list_for_each_entry_rcu
#define tp_list_for_each_entry_rcu(pos, head, member) \
#undef _ctf_string
#define _ctf_string(_item, _src, _nowrite) \
__event_len += __dynamic_len[__dynamic_len_idx++] = \
#undef _ctf_string
#define _ctf_string(_item, _src, _nowrite) \
__event_len += __dynamic_len[__dynamic_len_idx++] = \
- strlen((_src) ? (_src) : __LTTNG_UST_NULL_STRING) + 1;
+ strlen((_src) ? (_src) : LTTNG_UST__NULL_STRING) + 1;
#undef _ctf_unused
#define _ctf_unused(_src) \
#undef _ctf_unused
#define _ctf_unused(_src) \
#define _ctf_string(_item, _src, _nowrite) \
{ \
const void *__ctf_tmp_ptr = \
#define _ctf_string(_item, _src, _nowrite) \
{ \
const void *__ctf_tmp_ptr = \
- ((_src) ? (_src) : __LTTNG_UST_NULL_STRING); \
+ ((_src) ? (_src) : LTTNG_UST__NULL_STRING); \
memcpy(__stack_data, &__ctf_tmp_ptr, sizeof(void *)); \
__stack_data += sizeof(void *); \
}
memcpy(__stack_data, &__ctf_tmp_ptr, sizeof(void *)); \
__stack_data += sizeof(void *); \
}
#define _ctf_string(_item, _src, _nowrite) \
{ \
const char *__ctf_tmp_string = \
#define _ctf_string(_item, _src, _nowrite) \
{ \
const char *__ctf_tmp_string = \
- ((_src) ? (_src) : __LTTNG_UST_NULL_STRING); \
+ ((_src) ? (_src) : LTTNG_UST__NULL_STRING); \
__chan->ops->event_strcpy(&__ctx, __ctf_tmp_string, \
__get_dynamic_len(dest)); \
}
__chan->ops->event_strcpy(&__ctx, __ctf_tmp_string, \
__get_dynamic_len(dest)); \
}