summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-16 22:03:25 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-16 22:03:25 +0300
commitc0736ea762bfea95e98c8b9f118b4e5464f2159c (patch)
tree1bd3bb6859eccd4ea71dc300b34104496e01cf7c /audio/sink.c
parent3a11e84a573785024b11d89ed4f9b06e43b06ca6 (diff)
Rename dbus_connection_emit_property_changed to emit_property_changed
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c34
1 files changed, 14 insertions, 20 deletions
diff --git a/audio/sink.c b/audio/sink.c
index a1034c1a..a2dfd69e 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -91,10 +91,9 @@ static void stream_state_changed(struct avdtp_stream *stream,
AUDIO_SINK_INTERFACE,
"Disconnected",
DBUS_TYPE_INVALID);
- dbus_connection_emit_property_changed(dev->conn, dev->path,
- AUDIO_SINK_INTERFACE,
- "Connected",
- DBUS_TYPE_BOOLEAN, &value);
+ emit_property_changed(dev->conn, dev->path,
+ AUDIO_SINK_INTERFACE, "Connected",
+ DBUS_TYPE_BOOLEAN, &value);
if (sink->disconnect) {
DBusMessage *reply;
struct pending_request *p;
@@ -122,24 +121,20 @@ static void stream_state_changed(struct avdtp_stream *stream,
AUDIO_SINK_INTERFACE,
"Connected",
DBUS_TYPE_INVALID);
- dbus_connection_emit_property_changed(dev->conn,
- dev->path,
- AUDIO_SINK_INTERFACE,
- "Connected",
- DBUS_TYPE_BOOLEAN,
- &value);
+ emit_property_changed(dev->conn, dev->path,
+ AUDIO_SINK_INTERFACE,
+ "Connected",
+ DBUS_TYPE_BOOLEAN, &value);
} else if (old_state == AVDTP_STATE_STREAMING) {
value = FALSE;
g_dbus_emit_signal(dev->conn, dev->path,
AUDIO_SINK_INTERFACE,
"Stopped",
DBUS_TYPE_INVALID);
- dbus_connection_emit_property_changed(dev->conn,
- dev->path,
- AUDIO_SINK_INTERFACE,
- "Playing",
- DBUS_TYPE_BOOLEAN,
- &value);
+ emit_property_changed(dev->conn, dev->path,
+ AUDIO_SINK_INTERFACE,
+ "Playing",
+ DBUS_TYPE_BOOLEAN, &value);
}
break;
case AVDTP_STATE_STREAMING:
@@ -148,10 +143,9 @@ static void stream_state_changed(struct avdtp_stream *stream,
AUDIO_SINK_INTERFACE,
"Playing",
DBUS_TYPE_INVALID);
- dbus_connection_emit_property_changed(dev->conn, dev->path,
- AUDIO_SINK_INTERFACE,
- "Playing",
- DBUS_TYPE_BOOLEAN, &value);
+ emit_property_changed(dev->conn, dev->path,
+ AUDIO_SINK_INTERFACE, "Playing",
+ DBUS_TYPE_BOOLEAN, &value);
break;
case AVDTP_STATE_CONFIGURED:
case AVDTP_STATE_CLOSING: