diff --git a/doc/device-api.txt b/doc/device-api.txt
index 0c1051d..36f251d 100644
--- a/doc/device-api.txt
+++ b/doc/device-api.txt
this method should be restricted to administrator
use.
- A DisconnectRequested signal will be sent and the
- actual disconnection will only happen 2 seconds later.
- This enables upper-level applications to terminate
- their connections gracefully before the ACL connection
- is terminated.
-
Possible errors: org.bluez.Error.NotConnected
void ConnectProfile(string uuid)
This method can be used to cancel a pairing
operation initiated by the Pair method.
-Signals DisconnectRequested()
-
- This signal will be sent when a low level
- disconnection to a remote device has been requested.
- The actual disconnection will happen 2 seconds later.
-
Properties string Address [readonly]
The Bluetooth device address of the remote device.
diff --git a/src/device.c b/src/device.c
index ade7583..3e57191 100644
--- a/src/device.c
+++ b/src/device.c
device->disconn_timer = g_timeout_add_seconds(DISCONNECT_TIMER,
do_disconnect, device);
-
- g_dbus_emit_signal(btd_get_dbus_connection(),
- device->path,
- DEVICE_INTERFACE, "DisconnectRequested",
- DBUS_TYPE_INVALID);
}
static DBusMessage *disconnect(DBusConnection *conn, DBusMessage *msg,
{ }
};
-static const GDBusSignalTable device_signals[] = {
- { GDBUS_SIGNAL("DisconnectRequested", NULL) },
- { }
-};
-
static const GDBusPropertyTable device_properties[] = {
{ "Address", "s", dev_property_get_address },
{ "Name", "s", dev_property_get_name, NULL, dev_property_exists_name },
if (g_dbus_register_interface(btd_get_dbus_connection(),
device->path, DEVICE_INTERFACE,
- device_methods, device_signals,
+ device_methods, NULL,
device_properties, device,
device_free) == FALSE) {
device_free(device);