summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2012-12-16 07:03:00 +0200
committerTanu Kaskinen <tanuk@iki.fi>2012-12-19 12:31:49 +0200
commit7b8681de07bbeedda8a331ef7a120ea336bef5d7 (patch)
tree90acc9cd7f3c537d5de66b712a2e2ffb21f84ad7
parent51c88fb8b95bfe2c0e97177d097bc1d4681c4fc8 (diff)
bluetooth: Make pa_bt_audio_state_from_string() private.
-rw-r--r--src/modules/bluetooth/bluetooth-util.c4
-rw-r--r--src/modules/bluetooth/bluetooth-util.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c
index 0e05c98b9..392f4a5a4 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 755da4c56..59db33c96 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