X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.h;h=9d775d5723d17d614547023c770ecc19ed0c8fbf;hb=65c85aa61984217039857513bbe988036f371693;hp=56f5d3ac2a0670ac2ed4edfbc731e2aa6a8f5a59;hpb=114667d5aa4ec11334787e04a9f90fe9184fc16f;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 56f5d3ac..9d775d57 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -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; };