X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-ir%2Ffield-class-internal.h;h=77268c5f2bad990f2465d0850caa29b087a0d1cd;hb=4cbed8e8aabe2f9032505f35775d8d5c2164f224;hp=d4814cdb428bec82d7c121549c8b820c72a314fe;hpb=b8266f584fecfb4e0d05da184aaac3466acb3dd8;p=deliverable%2Fbabeltrace.git diff --git a/include/babeltrace/trace-ir/field-class-internal.h b/include/babeltrace/trace-ir/field-class-internal.h index d4814cdb4..77268c5f2 100644 --- a/include/babeltrace/trace-ir/field-class-internal.h +++ b/include/babeltrace/trace-ir/field-class-internal.h @@ -163,8 +163,13 @@ struct bt_named_field_class { /* Owned by this */ struct bt_field_class *fc; + + bool frozen; }; +struct bt_field_class_structure_member; +struct bt_field_class_variant_option; + /* * This is the base field class for a container of named field classes. * Structure and variant field classes inherit this. @@ -234,6 +239,15 @@ void _bt_field_class_freeze(const struct bt_field_class *field_class); # define bt_field_class_freeze(_fc) #endif +BT_HIDDEN +void _bt_named_field_class_freeze(const struct bt_named_field_class *named_fc); + +#ifdef BT_DEV_MODE +# define bt_named_field_class_freeze _bt_named_field_class_freeze +#else +# define bt_named_field_class_freeze(_named_fc) +#endif + /* * This function recursively marks `field_class` and its children as * being part of a trace. This is used to validate that all field classes