Fix: check enum overlap as long as the type is not frozen
[babeltrace.git] / include / babeltrace / ctf-ir / field-types-internal.h
index bd2f485758d265b873ba38fa9f96fdd2e93a247b..1b340b5b2ad9224935739f93e5a6b3c101b761c1 100644 (file)
@@ -93,10 +93,11 @@ struct bt_ctf_field_type_enumeration {
        struct bt_ctf_field_type *container;
        GPtrArray *entries; /* Array of ptrs to struct enumeration_mapping */
        struct declaration_enum declaration;
+       /* Only set during validation. */
        bool has_overlapping_ranges;
 };
 
-enum bt_ctf_field_type_enumeration_mapping_iterator_kind {
+enum bt_ctf_field_type_enumeration_mapping_iterator_type {
        ITERATOR_BY_NAME,
        ITERATOR_BY_SIGNED_VALUE,
        ITERATOR_BY_UNSIGNED_VALUE,
@@ -105,7 +106,7 @@ enum bt_ctf_field_type_enumeration_mapping_iterator_kind {
 struct bt_ctf_field_type_enumeration_mapping_iterator {
        struct bt_object base;
        struct bt_ctf_field_type_enumeration *enumeration_type;
-       enum bt_ctf_field_type_enumeration_mapping_iterator_kind kind;
+       enum bt_ctf_field_type_enumeration_mapping_iterator_type type;
        int index;
        union {
                GQuark name_quark;
This page took 0.026094 seconds and 4 git commands to generate.