ir: copy variants and sequences when setting a field path
[deliverable/babeltrace.git] / include / babeltrace / ctf-ir / event-types-internal.h
index 48ead4858033f9d7543b7cc7e6e8d59d53b135cb..8475198be676bc0f1860059c68807f98140c668f 100644 (file)
@@ -201,6 +201,12 @@ BT_HIDDEN
 int bt_ctf_field_type_structure_get_field_name_index(
                struct bt_ctf_field_type *structure, const char *name);
 
+/* Replace an existing field's type in a structure */
+BT_HIDDEN
+int bt_ctf_field_type_structure_set_field_index(
+               struct bt_ctf_field_type *structure,
+               struct bt_ctf_field_type *field, int index);
+
 BT_HIDDEN
 int bt_ctf_field_type_variant_get_field_name_index(
                struct bt_ctf_field_type *variant, const char *name);
@@ -218,4 +224,10 @@ BT_HIDDEN
 int bt_ctf_field_type_variant_set_tag(struct bt_ctf_field_type *type,
                struct bt_ctf_field_type *tag);
 
+/* Replace an existing field's type in a variant */
+BT_HIDDEN
+int bt_ctf_field_type_variant_set_field_index(
+               struct bt_ctf_field_type *variant,
+               struct bt_ctf_field_type *field, int index);
+
 #endif /* BABELTRACE_CTF_IR_EVENT_TYPES_INTERNAL_H */
This page took 0.025057 seconds and 5 git commands to generate.