Diff between f9dddf3f414cc2254a381e35e48c87488765fbc9 and 84f4d71d7de54561e44cd48c1fa28a9f370224af

Changed Files

File Additions Deletions Status
audio/headset.c +2 -2 modified
audio/headset.h +2 -2 modified
audio/main.c +1 -1 modified
audio/manager.c +1 -1 modified

Full Patch

diff --git a/audio/headset.c b/audio/headset.c
index b7ad052..de3fd3e 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -2430,14 +2430,14 @@ unsigned int headset_suspend_stream(struct audio_device *dev,
 	return id;
 }
 
-gboolean get_hfp_active(struct audio_device *dev)
+gboolean headset_get_hfp_active(struct audio_device *dev)
 {
 	struct headset *hs = dev->headset;
 
 	return hs->hfp_active;
 }
 
-void set_hfp_active(struct audio_device *dev, gboolean active)
+void headset_set_hfp_active(struct audio_device *dev, gboolean active)
 {
 	struct headset *hs = dev->headset;
 
diff --git a/audio/headset.h b/audio/headset.h
index 8180d69..99eeca8 100644
--- a/audio/headset.h
+++ b/audio/headset.h
@@ -79,8 +79,8 @@ unsigned int headset_suspend_stream(struct audio_device *dev,
 					void *user_data);
 gboolean headset_cancel_stream(struct audio_device *dev, unsigned int id);
 
-gboolean get_hfp_active(struct audio_device *dev);
-void set_hfp_active(struct audio_device *dev, gboolean active);
+gboolean headset_get_hfp_active(struct audio_device *dev);
+void headset_set_hfp_active(struct audio_device *dev, gboolean active);
 
 gboolean headset_get_rfcomm_initiator(struct audio_device *dev);
 void headset_set_rfcomm_initiator(struct audio_device *dev,
diff --git a/audio/main.c b/audio/main.c
index 745c307..5c751af 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -105,7 +105,7 @@ static void sco_server_cb(GIOChannel *chan, GError *err, gpointer data)
 			goto drop;
 		}
 
-		if (!get_hfp_active(device)) {
+		if (!headset_get_hfp_active(device)) {
 			error("Refusing non-HFP SCO connect attempt from %s",
 									addr);
 			goto drop;
diff --git a/audio/manager.c b/audio/manager.c
index 4f654cf..33b4f5f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -510,7 +510,7 @@ static void ag_confirm(GIOChannel *chan, gpointer data)
 		goto drop;
 	}
 
-	set_hfp_active(device, hfp_active);
+	headset_set_hfp_active(device, hfp_active);
 	headset_set_rfcomm_initiator(device, TRUE);
 
 	if (headset_connect_rfcomm(device, chan) < 0) {