X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Ffields.h;fp=include%2Fbabeltrace%2Fctf-ir%2Ffields.h;h=5a030b356e7d4454b32c7c0d892291c3016b3dc5;hb=9ac68eb139149d2768848dae5e263cc5a755d439;hp=abdc3dd1593f7d6bffcdf3231046d7e648ba3723;hpb=5774b889f257d1756a09ef720f22b8d7081e06fd;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/fields.h b/include/babeltrace/ctf-ir/fields.h index abdc3dd1..5a030b35 100644 --- a/include/babeltrace/ctf-ir/fields.h +++ b/include/babeltrace/ctf-ir/fields.h @@ -863,9 +863,12 @@ exist. @sa bt_ctf_field_structure_set_field(): Sets the field of a given structure field. */ -extern struct bt_ctf_field *bt_ctf_field_structure_get_field( +extern struct bt_ctf_field *bt_ctf_field_structure_get_field_by_name( struct bt_ctf_field *struct_field, const char *name); +/* Pre-2.0 CTF writer compatibility */ +#define bt_ctf_field_structure_get_field bt_ctf_field_structure_get_field_by_name + /** @brief Returns the @field at index \p index in the @structfield \p struct_field. @@ -890,7 +893,7 @@ extern struct bt_ctf_field *bt_ctf_field_structure_get_field( structure field. */ extern struct bt_ctf_field *bt_ctf_field_structure_get_field_by_index( - struct bt_ctf_field *struct_field, int index); + struct bt_ctf_field *struct_field, uint64_t index); /** @brief Sets the field of the @structfield \p struct_field named \p name