Fix: Return a variant's alignment as 0 (undefined).
[babeltrace.git] / include / babeltrace / ctf-ir / event-types.h
index 2006943536491b25e9f1b8731ade15e70328b2fe..fdec2e07bb6bc1f92ea2ac8df751f7246b707e69 100644 (file)
@@ -697,7 +697,8 @@ extern int bt_ctf_field_type_string_set_encoding(
  *
  * @param type Field type.
  *
- * Returns the field type's alignment on success, a negative value on error.
+ * Returns the field type's alignment on success, a negative value on error and
+ * 0 if the alignment is undefined (as in the case of a variant).
  */
 extern int bt_ctf_field_type_get_alignment(struct bt_ctf_field_type *type);
 
This page took 0.023433 seconds and 4 git commands to generate.