Add ctf_enum_auto() for autoincrementing enumeration values
[lttng-ust.git] / include / lttng / ust-events.h
index 5167ddee50a9de5f526c80545221dab32fbb3246..61acf7542305f84ada90af1f0e68ec4f5a9b6210 100644 (file)
@@ -106,11 +106,20 @@ struct lttng_enum_value {
        unsigned int signedness:1;
 };
 
+enum lttng_enum_entry_options {
+       LTTNG_ENUM_ENTRY_OPTION_IS_AUTO = 1U << 0,
+};
+
 #define LTTNG_UST_ENUM_ENTRY_PADDING   16
 struct lttng_enum_entry {
        struct lttng_enum_value start, end; /* start and end are inclusive */
        const char *string;
-       char padding[LTTNG_UST_ENUM_ENTRY_PADDING];
+       union {
+               struct {
+                       unsigned int options;
+               } LTTNG_PACKED extra;
+               char padding[LTTNG_UST_ENUM_ENTRY_PADDING];
+       } u;
 };
 
 #define __type_integer(_type, _byte_order, _base, _encoding)   \
This page took 0.023308 seconds and 4 git commands to generate.