ir: add internal field path getters
[babeltrace.git] / formats / ctf / ir / event-types.c
index 450f8d58d219f8e3e6f083c32c20363feadc46d6..9d2bd39b0a108b8239ba9b649f9cb38e19ae16f4 100644 (file)
@@ -2221,6 +2221,18 @@ end:
        return ret;
 }
 
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_sequence_get_length_field_path(
+               struct bt_ctf_field_type *type)
+{
+       struct bt_ctf_field_type_sequence *sequence;
+
+       sequence = container_of(type, struct bt_ctf_field_type_sequence,
+               parent);
+
+       return sequence->length_field_path;
+}
+
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag_field_path(struct bt_ctf_field_type *type,
                struct bt_ctf_field_path *path)
@@ -2243,6 +2255,18 @@ end:
        return ret;
 }
 
+BT_HIDDEN
+struct bt_ctf_field_path *bt_ctf_field_type_variant_get_tag_field_path(
+               struct bt_ctf_field_type *type)
+{
+       struct bt_ctf_field_type_variant *variant;
+
+       variant = container_of(type, struct bt_ctf_field_type_variant,
+               parent);
+
+       return variant->tag_path;
+}
+
 BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type,
                struct bt_ctf_field_type *tag)
This page took 0.023277 seconds and 4 git commands to generate.