ust-ctl: use fixed-size integer rather than enum
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-ust-ctl.h
index b8cf775e382a38a72d0c64428fd9b6c95d2abd7e..8ee80bac4ec8d50b845182da4848db3ab12f9242 100644 (file)
@@ -272,7 +272,7 @@ struct ustctl_integer_type {
        uint32_t signedness;
        uint32_t reverse_byte_order;
        uint32_t base;          /* 2, 8, 10, 16, for pretty print */
-       enum ustctl_string_encodings encoding;
+       int32_t encoding;
        uint16_t alignment;     /* in bits */
        char padding[USTCTL_UST_INTEGER_TYPE_PADDING];
 } LTTNG_PACKED;
@@ -297,14 +297,19 @@ struct ustctl_enum_value {
 struct ustctl_enum_entry {
        struct ustctl_enum_value start, end; /* start and end are inclusive */
        char string[LTTNG_UST_SYM_NAME_LEN];
-       char padding[USTCTL_UST_ENUM_ENTRY_PADDING];
+       union {
+               struct {
+                       uint8_t is_auto;
+               } LTTNG_PACKED options;
+               char padding[USTCTL_UST_ENUM_ENTRY_PADDING];
+       } u;
 } LTTNG_PACKED;
 
 #define USTCTL_UST_BASIC_TYPE_PADDING  296
 union _ustctl_basic_type {
        struct ustctl_integer_type integer;
        struct {
-               enum ustctl_string_encodings encoding;
+               int32_t encoding;
        } string;
        struct ustctl_float_type _float;
        struct {
This page took 0.025632 seconds and 5 git commands to generate.