Implement bt_ctf_field_type_variant_set_tag_name()
[babeltrace.git] / include / babeltrace / ctf-ir / event-types.h
index 19dd6a330b178f0f4b178a1a7952c4b76705275b..2006943536491b25e9f1b8731ade15e70328b2fe 100644 (file)
@@ -501,6 +501,17 @@ extern struct bt_ctf_field_type *bt_ctf_field_type_variant_get_tag_type(
 extern const char *bt_ctf_field_type_variant_get_tag_name(
                struct bt_ctf_field_type *variant);
 
+/*
+ * bt_ctf_field_type_variant_set_tag_name: set a variant's tag name.
+ *
+ * @param variant Variant type.
+ * @param name Tag field name.
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_field_type_variant_set_tag_name(
+               struct bt_ctf_field_type *variant, const char *name);
+
 /*
  * bt_ctf_field_type_variant_add_field: add a field to a variant.
  *
This page took 0.023135 seconds and 4 git commands to generate.