-extern void bt_field_class_unsigned_enumeration_borrow_mapping_by_index_const(
- const bt_field_class *field_class, uint64_t index,
- const char **label,
- const bt_field_class_unsigned_enumeration_mapping_ranges **ranges);
+extern const bt_field_class_unsigned_enumeration_mapping *
+bt_field_class_unsigned_enumeration_borrow_mapping_by_index_const(
+ const bt_field_class *field_class, uint64_t index);
+
+extern const bt_field_class_signed_enumeration_mapping *
+bt_field_class_signed_enumeration_borrow_mapping_by_index_const(
+ const bt_field_class *field_class, uint64_t index);
+
+static inline
+const bt_field_class_enumeration_mapping *
+bt_field_class_unsigned_enumeration_mapping_as_mapping_const(
+ const bt_field_class_unsigned_enumeration_mapping *mapping)
+{
+ return __BT_UPCAST_CONST(bt_field_class_enumeration_mapping, mapping);
+}