Skip to contentSkip to conversation

Mark Headset.Play method deprecated

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Jun 27, 2011 – Jun 30, 2011 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Mark Headset.Play method deprecated

From: Luiz Augusto von Dentz <[email protected]>

SCO socket should be connected using either unix socket ipc or Media API

---
 audio/headset.c   |    3 ++-
 doc/audio-api.txt |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
audio/headset.c +2 -1
index 2864257..664f393 100644
@@ -2060,7 +2060,8 @@ static GDBusMethodTable headset_methods[] = {
 	{ "IndicateCall",	"",	"",	hs_ring },
 	{ "CancelCall",		"",	"",	hs_cancel_call },
 	{ "Play",		"",	"",	hs_play,
-						G_DBUS_METHOD_FLAG_ASYNC },
+						G_DBUS_METHOD_FLAG_ASYNC |
+						G_DBUS_METHOD_FLAG_DEPRECATED },
 	{ "Stop",		"",	"",	hs_stop },
 	{ "IsPlaying",		"",	"b",	hs_is_playing,
 						G_DBUS_METHOD_FLAG_DEPRECATED },
doc/audio-api.txt +1 -1
index d2f3996..0cf7884 100644
@@ -81,7 +81,7 @@ Methods		void Connect()
 
 			Cancel the incoming call indication.
 
-		void Play()
+		void Play() {deprecated}
 
 			Open the audio connection to the headset.
 
Signature · 1 line
1.7.5.4
#1 lore raw

Hi Luiz,

Quoted 5 lines · Luiz Augusto von Dentz

SCO socket should be connected using either unix socket ipc or Media API

---
 audio/headset.c   |    3 ++-
 doc/audio-api.txt |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Applied. Thanks.

Johan