Add an alias name attribute and accessor to CTF IR field type
[babeltrace.git] / include / babeltrace / ctf-ir / event-types.h
index 96200ce42d2d06d996b6ede6483345ac887abf55..18929eaa4ac45945fa8a886c1a0983ede553e951 100644 (file)
@@ -718,6 +718,21 @@ extern int bt_ctf_field_type_set_byte_order(struct bt_ctf_field_type *type,
 extern enum ctf_type_id bt_ctf_field_type_get_type_id(
                struct bt_ctf_field_type *type);
 
+/*
+ * bt_ctf_field_type_get_alias_nameL get a field type's alias name
+ *
+ * A type's alias name is set if it was resolved from a typedef or
+ * typealias. Note that types that are resolved from a ypealias or
+ * typedef are distinct from the underlying type and can't be compared
+ * pointer-wise.
+ *
+ * @param type Field type.
+ *
+ * Returns a field type's alias name, NULL on error.
+ */
+extern const char *bt_ctf_field_type_get_alias_name(
+               struct bt_ctf_field_type *type);
+
 /*
  * bt_ctf_field_type_get and bt_ctf_field_type_put: increment and decrement
  * the field type's reference count.
This page took 0.023786 seconds and 4 git commands to generate.