Implement variant type
[lttng-modules.git] / lttng-events.h
index 56f5d3ac2a0670ac2ed4edfbc731e2aa6a8f5a59..9d775d5723d17d614547023c770ecc19ed0c8fbf 100644 (file)
@@ -52,6 +52,7 @@ enum abstract_types {
        atype_struct,
        atype_array_compound,           /* Array of compound types. */
        atype_sequence_compound,        /* Sequence of compound types. */
+       atype_variant,
        NR_ABSTRACT_TYPES,
 };
 
@@ -139,6 +140,11 @@ struct lttng_type {
                        struct lttng_type *elem_type;
                        const char *length_name;
                } sequence_compound;
+               struct {
+                       const char *tag_name;
+                       struct lttng_event_field *choices; /* Array of fields. */
+                       uint32_t nr_choices;
+               } variant;
        } u;
 };
 
This page took 0.02272 seconds and 4 git commands to generate.