summaryrefslogtreecommitdiff
path: root/audio/sink.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-09 18:03:53 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-09 18:43:53 +0200
commit54d091859847e22463930f3be1a37499caafb940 (patch)
tree7d72c1ce75cd8d48bf69bb5abb4b7f634854a961 /audio/sink.c
parentbff95e0a02b6fa0b760f3e5b27ae9e712638e007 (diff)
sink: Remove deprecated code
Remove decrecated properties and signals
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/audio/sink.c b/audio/sink.c
index 0628fd243..d45185c01 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -148,15 +148,6 @@ static void avdtp_state_callback(struct audio_device *dev,
switch (new_state) {
case AVDTP_SESSION_STATE_DISCONNECTED:
- if (sink->state != SINK_STATE_CONNECTING) {
- gboolean value = FALSE;
- g_dbus_emit_signal(btd_get_dbus_connection(), dev->path,
- AUDIO_SINK_INTERFACE, "Disconnected",
- DBUS_TYPE_INVALID);
- emit_property_changed(dev->path,
- AUDIO_SINK_INTERFACE, "Connected",
- DBUS_TYPE_BOOLEAN, &value);
- }
sink_set_state(dev, SINK_STATE_DISCONNECTED);
break;
case AVDTP_SESSION_STATE_CONNECTING:
@@ -189,7 +180,6 @@ static void stream_state_changed(struct avdtp_stream *stream,
DBusConnection *conn = btd_get_dbus_connection();
struct audio_device *dev = user_data;
struct sink *sink = dev->sink;
- gboolean value;
if (err)
return;
@@ -216,38 +206,9 @@ static void stream_state_changed(struct avdtp_stream *stream,
sink->cb_id = 0;
break;
case AVDTP_STATE_OPEN:
- if (old_state == AVDTP_STATE_CONFIGURED &&
- sink->state == SINK_STATE_CONNECTING) {
- value = TRUE;
- g_dbus_emit_signal(conn, dev->path,
- AUDIO_SINK_INTERFACE,
- "Connected",
- DBUS_TYPE_INVALID);
- emit_property_changed(dev->path,
- AUDIO_SINK_INTERFACE,
- "Connected",
- DBUS_TYPE_BOOLEAN, &value);
- } else if (old_state == AVDTP_STATE_STREAMING) {
- value = FALSE;
- g_dbus_emit_signal(conn, dev->path,
- AUDIO_SINK_INTERFACE,
- "Stopped",
- DBUS_TYPE_INVALID);
- emit_property_changed(dev->path,
- AUDIO_SINK_INTERFACE,
- "Playing",
- DBUS_TYPE_BOOLEAN, &value);
- }
sink_set_state(dev, SINK_STATE_CONNECTED);
break;
case AVDTP_STATE_STREAMING:
- value = TRUE;
- g_dbus_emit_signal(conn, dev->path,
- AUDIO_SINK_INTERFACE, "Playing",
- DBUS_TYPE_INVALID);
- emit_property_changed(dev->path,
- AUDIO_SINK_INTERFACE, "Playing",
- DBUS_TYPE_BOOLEAN, &value);
sink_set_state(dev, SINK_STATE_PLAYING);
break;
case AVDTP_STATE_CONFIGURED:
@@ -505,7 +466,6 @@ static DBusMessage *sink_get_properties(DBusConnection *conn,
DBusMessageIter iter;
DBusMessageIter dict;
const char *state;
- gboolean value;
reply = dbus_message_new_method_return(msg);
if (!reply)
@@ -518,14 +478,6 @@ static DBusMessage *sink_get_properties(DBusConnection *conn,
DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_VARIANT_AS_STRING
DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &dict);
- /* Playing */
- value = (sink->stream_state == AVDTP_STATE_STREAMING);
- dict_append_entry(&dict, "Playing", DBUS_TYPE_BOOLEAN, &value);
-
- /* Connected */
- value = (sink->stream_state >= AVDTP_STATE_CONFIGURED);
- dict_append_entry(&dict, "Connected", DBUS_TYPE_BOOLEAN, &value);
-
/* State */
state = state2str(sink->state);
if (state)
@@ -546,10 +498,6 @@ static const GDBusMethodTable sink_methods[] = {
};
static const GDBusSignalTable sink_signals[] = {
- { GDBUS_DEPRECATED_SIGNAL("Connected", NULL) },
- { GDBUS_DEPRECATED_SIGNAL("Disconnected", NULL) },
- { GDBUS_DEPRECATED_SIGNAL("Playing", NULL) },
- { GDBUS_DEPRECATED_SIGNAL("Stopped", NULL) },
{ GDBUS_SIGNAL("PropertyChanged",
GDBUS_ARGS({ "name", "s" }, { "value", "v" })) },
{ }