configure: check for elfutils (libelf and libdw) >= 0.154
[babeltrace.git] / types / struct.c
index b9fb6799b938dad37f6788c5bb14cafda8fa571d..7eaa42426054b9a617c551da6fcc38006bcee7e7 100644 (file)
@@ -242,7 +242,7 @@ struct declaration_field *
  * field returned only valid as long as the field structure is not appended to.
  */
 struct bt_definition *
-bt_struct_definition_get_field_from_index(struct definition_struct *_struct,
+bt_struct_definition_get_field_from_index(const struct definition_struct *_struct,
                                        int index)
 {
        if (index < 0)
@@ -250,7 +250,7 @@ bt_struct_definition_get_field_from_index(struct definition_struct *_struct,
        return g_ptr_array_index(_struct->fields, index);
 }
 
-uint64_t bt_struct_declaration_len(struct declaration_struct *struct_declaration)
+uint64_t bt_struct_declaration_len(const struct declaration_struct *struct_declaration)
 {
        return struct_declaration->fields->len;
 }
This page took 0.022321 seconds and 4 git commands to generate.