goto end;
}
- switch (fc->id) {
- case CTF_FIELD_CLASS_ID_INT:
- case CTF_FIELD_CLASS_ID_ENUM:
+ switch (fc->type) {
+ case CTF_FIELD_CLASS_TYPE_INT:
+ case CTF_FIELD_CLASS_TYPE_ENUM:
{
struct ctf_field_class_int *int_fc = (void *) fc;
break;
}
- case CTF_FIELD_CLASS_ID_STRUCT:
+ case CTF_FIELD_CLASS_TYPE_STRUCT:
{
struct ctf_field_class_struct *struct_fc = (void *) fc;
break;
}
- case CTF_FIELD_CLASS_ID_VARIANT:
+ case CTF_FIELD_CLASS_TYPE_VARIANT:
{
struct ctf_field_class_variant *var_fc = (void *) fc;
break;
}
- case CTF_FIELD_CLASS_ID_ARRAY:
- case CTF_FIELD_CLASS_ID_SEQUENCE:
+ case CTF_FIELD_CLASS_TYPE_ARRAY:
+ case CTF_FIELD_CLASS_TYPE_SEQUENCE:
{
struct ctf_field_class_array_base *array_fc = (void *) fc;
named_fc = ctf_field_class_struct_borrow_member_by_name(
(void *) ctf_tc->packet_header_fc, "uuid");
- if (named_fc && named_fc->fc->id == CTF_FIELD_CLASS_ID_ARRAY) {
+ if (named_fc && named_fc->fc->type == CTF_FIELD_CLASS_TYPE_ARRAY) {
struct ctf_field_class_array *array_fc =
(void *) named_fc->fc;