projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint API namespacing 'TRACEPOINT_ENUM'
[lttng-ust.git]
/
include
/
lttng
/
tracepoint.h
diff --git
a/include/lttng/tracepoint.h
b/include/lttng/tracepoint.h
index 043426fce78e580806e5446e12fa4945e7b652a0..71250ce04361be49ffd335655d2a2a278bef3e3d 100644
(file)
--- a/
include/lttng/tracepoint.h
+++ b/
include/lttng/tracepoint.h
@@
-597,7
+597,7
@@
lttng_ust__tracepoints__ptrs_destroy(void)
/* The following declarations must be outside re-inclusion protection. */
/* The following declarations must be outside re-inclusion protection. */
-#ifndef TRACEPOINT_ENUM
+#ifndef
LTTNG_UST_
TRACEPOINT_ENUM
/*
* Tracepoint Enumerations
/*
* Tracepoint Enumerations
@@
-608,7
+608,7
@@
lttng_ust__tracepoints__ptrs_destroy(void)
*
* An example:
*
*
* An example:
*
- * TRACEPOINT_ENUM(someproject_component, enumname,
+ *
LTTNG_UST_
TRACEPOINT_ENUM(someproject_component, enumname,
* TP_ENUM_VALUES(
* ctf_enum_value("even", 0)
* ctf_enum_value("uneven", 1)
* TP_ENUM_VALUES(
* ctf_enum_value("even", 0)
* ctf_enum_value("uneven", 1)
@@
-632,14
+632,18
@@
lttng_ust__tracepoints__ptrs_destroy(void)
* ctf_enum(someproject_component, enumname, enumtype, enumfield, enumval)
*
* Where "someproject_component" and "enumname" match those in the
* ctf_enum(someproject_component, enumname, enumtype, enumfield, enumval)
*
* Where "someproject_component" and "enumname" match those in the
- * TRACEPOINT_ENUM, "enumtype" is a signed or unsigned integer type
+ *
LTTNG_UST_
TRACEPOINT_ENUM, "enumtype" is a signed or unsigned integer type
* backing the enumeration, "enumfield" is the name of the field and
* "enumval" is the value.
*/
* backing the enumeration, "enumfield" is the name of the field and
* "enumval" is the value.
*/
-#define TRACEPOINT_ENUM(provider, name, values)
+#define
LTTNG_UST_
TRACEPOINT_ENUM(provider, name, values)
-#endif /* #ifndef TRACEPOINT_ENUM */
+#if LTTNG_UST_COMPAT_API(0)
+#define TRACEPOINT_ENUM LTTNG_UST_TRACEPOINT_ENUM
+#endif /* #if LTTNG_UST_COMPAT_API(0) */
+
+#endif /* #ifndef LTTNG_UST_TRACEPOINT_ENUM */
#ifndef LTTNG_UST_TRACEPOINT_EVENT
#ifndef LTTNG_UST_TRACEPOINT_EVENT
This page took
0.023994 seconds
and
4
git commands to generate.