Rename: "field class ID" -> "field class type"
[babeltrace.git] / plugins / ctf / common / metadata / ctf-meta-update-in-ir.c
index ca93a8d9a0ed78798d75cfd6a37dc0082ac56618..a765b7c1b0b09244918d1b90827ec39bc2576edc 100644 (file)
@@ -36,9 +36,9 @@ void update_field_class_in_ir(struct ctf_field_class *fc,
                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;
 
@@ -55,7 +55,7 @@ void update_field_class_in_ir(struct ctf_field_class *fc,
 
                break;
        }
-       case CTF_FIELD_CLASS_ID_STRUCT:
+       case CTF_FIELD_CLASS_TYPE_STRUCT:
        {
                struct ctf_field_class_struct *struct_fc = (void *) fc;
 
@@ -75,7 +75,7 @@ void update_field_class_in_ir(struct ctf_field_class *fc,
 
                break;
        }
-       case CTF_FIELD_CLASS_ID_VARIANT:
+       case CTF_FIELD_CLASS_TYPE_VARIANT:
        {
                struct ctf_named_field_class *named_fc;
                struct ctf_field_class_variant *var_fc = (void *) fc;
@@ -125,15 +125,15 @@ void update_field_class_in_ir(struct ctf_field_class *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;
 
                update_field_class_in_ir(array_fc->elem_fc, ft_dependents);
                fc->in_ir = array_fc->elem_fc->in_ir;
 
-               if (fc->id == CTF_FIELD_CLASS_ID_ARRAY) {
+               if (fc->type == CTF_FIELD_CLASS_TYPE_ARRAY) {
                        struct ctf_field_class_array *arr_fc = (void *) fc;
 
                        assert(arr_fc->meaning == CTF_FIELD_CLASS_MEANING_NONE ||
@@ -147,7 +147,7 @@ void update_field_class_in_ir(struct ctf_field_class *fc,
                                fc->in_ir = false;
                                array_fc->elem_fc->in_ir = false;
                        }
-               } else if (fc->id == CTF_FIELD_CLASS_ID_SEQUENCE) {
+               } else if (fc->type == CTF_FIELD_CLASS_TYPE_SEQUENCE) {
                        if (fc->in_ir) {
                                struct ctf_field_class_sequence *seq_fc = (void *) fc;
 
This page took 0.024738 seconds and 4 git commands to generate.