diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 15:49:52 +0300 | 
| commit | a5883ecb1aa94b09bcf0e7ce4184d262027c5939 (patch) | |
| tree | 80ce381543b85d61ea54f930a25d08ebabc1291c /audio/headset.c | |
| parent | fffc600099fdd44e485fa4925a599d790424f881 (diff) | |
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'audio/headset.c')
| -rw-r--r-- | audio/headset.c | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/audio/headset.c b/audio/headset.c index 107618e5..648185b5 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -540,8 +540,7 @@ static void sco_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,  	if (p->msg) {  		DBusMessage *reply = dbus_message_new_method_return(p->msg); -		dbus_connection_send(dev->conn, reply, NULL); -		dbus_message_unref(reply); +		g_dbus_send_message(dev->conn, reply);  	}  	pending_connect_finalize(dev); @@ -610,8 +609,7 @@ static void hfp_slc_complete(struct audio_device *dev)  	if (p->target_state == HEADSET_STATE_CONNECTED) {  		if (p->msg) {  			DBusMessage *reply = dbus_message_new_method_return(p->msg); -			dbus_connection_send(dev->conn, reply, NULL); -			dbus_message_unref(reply); +			g_dbus_send_message(dev->conn, reply);  		}  		pending_connect_finalize(dev);  		return; @@ -1216,8 +1214,7 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err, const bdaddr_t *src,  	if (p->msg) {  		DBusMessage *reply = dbus_message_new_method_return(p->msg); -		dbus_connection_send(dev->conn, reply, NULL); -		dbus_message_unref(reply); +		g_dbus_send_message(dev->conn, reply);  	}  	pending_connect_finalize(dev); | 
