bluetooth: Move profile_to_string() to bluetooth-util

Move the function to the utility library where the enum is defined. At
same time avoid using the default clause in order to make sure the
compiler will complain if the enum type gets extended.
This commit is contained in:
Mikel Astiz 2012-12-14 15:14:31 +01:00 committed by Tanu Kaskinen
parent d6d6770a04
commit f5a4626ffb
3 changed files with 22 additions and 19 deletions

View file

@ -162,5 +162,6 @@ char *pa_bluetooth_cleanup_name(const char *name);
pa_bool_t pa_bluetooth_uuid_has(pa_bluetooth_uuid *uuids, const char *uuid);
pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value);
const char *pa_bt_profile_to_string(enum profile profile);
#endif