-int bt_ctf_field_type_enumeration_mapping_iterator_get_name(
- struct bt_ctf_field_type_enumeration_mapping_iterator *iter,
- const char **mapping_name)
-{
- int ret = 0;
-
- if (!iter) {
- ret = -1;
- goto end;
- }
-
- ret = bt_ctf_field_type_enumeration_get_mapping_name(
- &iter->enumeration_type->parent, iter->index,
- mapping_name);
-end:
- return ret;
-}
-