summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-07 19:30:24 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-07 19:30:24 +0000
commitf80a7215275b229a597cf8d2bbc7e4e208af522c (patch)
tree9b9fcfd87de495562932e219dfb9db64859a8140 /audio/sink.c
parent15eded276cb81a91f812fe8a5eb8e29a3839542b (diff)
Use g_dbus_emit_signal for sending D-Bus signals
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/sink.c b/audio/sink.c
index 3b5447db..2af74bb3 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -84,7 +84,7 @@ static void stream_state_changed(struct avdtp_stream *stream,
switch (new_state) {
case AVDTP_STATE_IDLE:
- dbus_connection_emit_signal(dev->conn, dev->path,
+ g_dbus_emit_signal(dev->conn, dev->path,
AUDIO_SINK_INTERFACE,
"Disconnected",
DBUS_TYPE_INVALID);
@@ -110,18 +110,18 @@ static void stream_state_changed(struct avdtp_stream *stream,
break;
case AVDTP_STATE_OPEN:
if (old_state == AVDTP_STATE_CONFIGURED)
- dbus_connection_emit_signal(dev->conn, dev->path,
+ g_dbus_emit_signal(dev->conn, dev->path,
AUDIO_SINK_INTERFACE,
"Connected",
DBUS_TYPE_INVALID);
else if (old_state == AVDTP_STATE_STREAMING)
- dbus_connection_emit_signal(dev->conn, dev->path,
+ g_dbus_emit_signal(dev->conn, dev->path,
AUDIO_SINK_INTERFACE,
"Stopped",
DBUS_TYPE_INVALID);
break;
case AVDTP_STATE_STREAMING:
- dbus_connection_emit_signal(dev->conn, dev->path,
+ g_dbus_emit_signal(dev->conn, dev->path,
AUDIO_SINK_INTERFACE,
"Playing",
DBUS_TYPE_INVALID);