Standardize *get_*() functions
[babeltrace.git] / include / babeltrace / ctf-ir / fields.h
index abdc3dd1593f7d6bffcdf3231046d7e648ba3723..5a030b356e7d4454b32c7c0d892291c3016b3dc5 100644 (file)
@@ -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
This page took 0.02536 seconds and 4 git commands to generate.