X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fevent-types.h;fp=include%2Fbabeltrace%2Fctf-ir%2Fevent-types.h;h=fbef87c8e08818886a9f3607f18f35bb2445d37e;hb=265e809cb65022c2d9f15c0ddc0d607445621b76;hp=059a5b84b821a3a1a3faa5ec34475d2a5da137a1;hpb=db8ef25397aadcc7fa3f960c48ba74118322924b;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/event-types.h b/include/babeltrace/ctf-ir/event-types.h index 059a5b84..fbef87c8 100644 --- a/include/babeltrace/ctf-ir/event-types.h +++ b/include/babeltrace/ctf-ir/event-types.h @@ -741,6 +741,23 @@ extern enum bt_ctf_byte_order bt_ctf_field_type_get_byte_order( extern int bt_ctf_field_type_set_byte_order(struct bt_ctf_field_type *type, enum bt_ctf_byte_order byte_order); +/* + * bt_ctf_field_type_compare: compare two field types recursively + * + * Compare two field types recursively. + * + * The registered tag field type of a variant field type is ignored: + * only the tag strings are compared. + * + * @param type_a Field type A. + * @param type_b Field type B. + * + * Returns 0 if both field types are semantically equivalent, or a + * negative value when they are not equivalent or on error. + */ +extern int bt_ctf_field_type_compare(struct bt_ctf_field_type *type_a, + struct bt_ctf_field_type *type_b); + /* * bt_ctf_field_type_get_type_id: get a field type's ctf_type_id. *