Allow unset tags on variant field types
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Mar 2015 23:13:57 +0000 (18:13 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Mar 2015 19:01:44 +0000 (15:01 -0400)
commit6964b7fd27e2e314b8acd5d72142bbe41f02c868
tree7036d7b40e8034b95bb504679a3e1536e78a358d
parent76a3388173de378118a7f0a253266369e49b97e8
Allow unset tags on variant field types

This allows the creation of a variant while not specifying the variant's
tag's name and type which is needed to support untagged variants.

This will allow the support of constructs such as:
variant name {
    field_type sel1;
    field_type sel2;
    field_type sel3;
    /* ... */
};

struct {
    enum : integer_type { sel1, sel2, sel3, /* ... */ } tag_field;
    /* ... */
    variant name <tag_field> v;
}

The validation of variant fields thus becomes optional and will
be implemented as part of the freeze() of variants in a later commit.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-types.c
include/babeltrace/ctf-ir/event-types.h
This page took 0.025022 seconds and 4 git commands to generate.