diff --git a/doc/control-api.txt b/doc/control-api.txt
index c3389b2..0d25512 100644
--- a/doc/control-api.txt
+++ b/doc/control-api.txt
Adjust remote volume one step down
-Signals Connected() {deprecated}
-
- Sent when a successful AVRCP connection has been made
- to the remote device.
-
- Disconnected() {deprecated}
-
- Sent when the AVRCP connection to the remote device
- has been disconnected.
-
Properties
boolean Connected [readonly]
diff --git a/profiles/audio/control.c b/profiles/audio/control.c
index 0106f2a..29cf3bb 100644
--- a/profiles/audio/control.c
+++ b/profiles/audio/control.c
if (old_state != AVCTP_STATE_CONNECTED)
break;
- g_dbus_emit_signal(conn, path, AUDIO_CONTROL_INTERFACE,
- "Disconnected", DBUS_TYPE_INVALID);
g_dbus_emit_property_changed(conn, path,
AUDIO_CONTROL_INTERFACE, "Connected");
control->connect = NULL;
}
- g_dbus_emit_signal(conn, path,
- AUDIO_CONTROL_INTERFACE, "Connected",
- DBUS_TYPE_INVALID);
g_dbus_emit_property_changed(conn, path,
AUDIO_CONTROL_INTERFACE, "Connected");
break;
{ }
};
-static const GDBusSignalTable control_signals[] = {
- { GDBUS_DEPRECATED_SIGNAL("Connected", NULL) },
- { GDBUS_DEPRECATED_SIGNAL("Disconnected", NULL) },
- { }
-};
-
static const GDBusPropertyTable control_properties[] = {
{ "Connected", "b", control_property_get_connected },
{ }
if (!g_dbus_register_interface(btd_get_dbus_connection(),
device_get_path(dev->btd_dev),
AUDIO_CONTROL_INTERFACE,
- control_methods, control_signals,
+ control_methods, NULL,
control_properties, dev,
path_unregister))
return NULL;