Namespace _float_mant_dig with lttng_ust_ prefix
[lttng-ust.git] / include / lttng / ust-events.h
index 946abe4b610d80fa2fb621d71a4404328d7cb4a1..bb038bbe11e800e5d587aa69cb5035db62e1104f 100644 (file)
@@ -71,13 +71,13 @@ enum lttng_ust_string_encoding {
        NR_LTTNG_UST_STRING_ENCODING,
 };
 
-struct lttng_enum_value {
+struct lttng_ust_enum_value {
        unsigned long long value;
        unsigned int signedness:1;
 };
 
-enum lttng_enum_entry_options {
-       LTTNG_ENUM_ENTRY_OPTION_IS_AUTO = 1U << 0,
+enum lttng_ust_enum_entry_option {
+       LTTNG_UST_ENUM_ENTRY_OPTION_IS_AUTO = 1U << 0,
 };
 
 /*
@@ -95,7 +95,7 @@ enum lttng_enum_entry_options {
 struct lttng_ust_enum_entry {
        uint32_t struct_size;
 
-       struct lttng_enum_value start, end; /* start and end are inclusive */
+       struct lttng_ust_enum_value start, end; /* start and end are inclusive */
        const char *string;
        unsigned int options;
 
@@ -146,7 +146,7 @@ struct lttng_ust_type_float {
  * Only float and double are supported. long double is not supported at
  * the moment.
  */
-#define _float_mant_dig(_type)                                         \
+#define lttng_ust_float_mant_dig(_type)                                        \
        (sizeof(_type) == sizeof(float) ? FLT_MANT_DIG                  \
                : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG       \
                : 0))
@@ -158,8 +158,8 @@ struct lttng_ust_type_float {
                },                                                      \
                .struct_size = sizeof(struct lttng_ust_type_float),     \
                .exp_dig = sizeof(_type) * CHAR_BIT                     \
-                       - _float_mant_dig(_type),                       \
-               .mant_dig = _float_mant_dig(_type),                     \
+                       - lttng_ust_float_mant_dig(_type),              \
+               .mant_dig = lttng_ust_float_mant_dig(_type),            \
                .alignment = lttng_alignof(_type) * CHAR_BIT,           \
                .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER,   \
        }))
This page took 0.025306 seconds and 4 git commands to generate.