[pulseaudio-discuss] [PATCH v0 03/16] bluetooth: Trivial function rename

Mikel Astiz mikel.astiz.oss at gmail.com
Fri Sep 28 08:45:27 PDT 2012


From: Mikel Astiz <mikel.astiz at bmw-carit.de>

Former setup_bt() was just setting up the transport, so it's easier to
follow if the function name makes this more explicit.
---
 src/modules/bluetooth/module-bluetooth-device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 80ce52c..82d81b3 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -1979,7 +1979,7 @@ static void bt_transport_config(struct userdata *u) {
 }
 
 /* Run from main thread */
-static int setup_bt(struct userdata *u) {
+static int setup_transport(struct userdata *u) {
     const pa_bluetooth_device *d;
     const pa_bluetooth_transport *t;
 
@@ -2019,7 +2019,7 @@ static int init_profile(struct userdata *u) {
     pa_assert(u);
     pa_assert(u->profile != PROFILE_OFF);
 
-    if (setup_bt(u) < 0)
+    if (setup_transport(u) < 0)
         return -1;
 
     if (u->profile == PROFILE_A2DP ||
-- 
1.7.11.4



More information about the pulseaudio-discuss mailing list