- BT_ASSERT_PRE_FC_HAS_ID(fc, BT_FIELD_CLASS_TYPE_STRUCTURE, "Field class");
- borrow_named_field_class_from_container_field_class_at_index_const(
+ BT_ASSERT_PRE_FC_HAS_ID(fc, BT_FIELD_CLASS_TYPE_STRUCTURE,
+ "Field class");
+ borrow_named_field_class_from_container_field_class_at_index(
+ (void *) fc, index, name, (void *) out_fc);
+}
+
+void bt_field_class_structure_borrow_member_by_index(
+ struct bt_field_class *fc, uint64_t index,
+ const char **name, struct bt_field_class **out_fc)
+{
+ BT_ASSERT_PRE_NON_NULL(fc, "Field class");
+ BT_ASSERT_PRE_FC_HAS_ID(fc, BT_FIELD_CLASS_TYPE_STRUCTURE,
+ "Field class");
+ borrow_named_field_class_from_container_field_class_at_index(