From: Tanu Kaskinen Date: Sun, 16 Dec 2012 05:03:00 +0000 (+0200) Subject: bluetooth: Make pa_bt_audio_state_from_string() private. X-Git-Tag: v3.99.1~223 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b8681de07bbeedda8a331ef7a120ea336bef5d7;p=platform%2Fupstream%2Fpulseaudio.git bluetooth: Make pa_bt_audio_state_from_string() private. --- diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 0e05c98..392f4a5 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++ b/src/modules/bluetooth/bluetooth-util.c @@ -78,7 +78,7 @@ static pa_dbus_pending* send_and_add_to_pending(pa_bluetooth_discovery *y, DBusM static void found_adapter(pa_bluetooth_discovery *y, const char *path); static pa_bluetooth_device *found_device(pa_bluetooth_discovery *y, const char* path); -pa_bt_audio_state_t pa_bt_audio_state_from_string(const char* value) { +static pa_bt_audio_state_t audio_state_from_string(const char* value) { pa_assert(value); if (pa_streq(value, "disconnected")) @@ -529,7 +529,7 @@ static int parse_audio_property(pa_bluetooth_device *d, const char *interface, D dbus_message_iter_get_basic(&variant_i, &value); if (pa_streq(key, "State")) { - pa_bt_audio_state_t state = pa_bt_audio_state_from_string(value); + pa_bt_audio_state_t state = audio_state_from_string(value); pa_bluetooth_transport_state_t old_state; pa_log_debug("Device %s interface %s property 'State' changed to value '%s'", d->path, interface, value); diff --git a/src/modules/bluetooth/bluetooth-util.h b/src/modules/bluetooth/bluetooth-util.h index 755da4c..59db33c 100644 --- a/src/modules/bluetooth/bluetooth-util.h +++ b/src/modules/bluetooth/bluetooth-util.h @@ -161,7 +161,6 @@ const char* pa_bluetooth_get_form_factor(uint32_t class); 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