summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-22 00:01:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-22 00:01:11 +0000
commitaf34a71cc0f6fdfb3ccd3085fd77030988e229f1 (patch)
tree5381b2cafb569f16d0b1c9492a8f84b43c8749ea /hcid/dbus-adapter.c
parentdac62d0d81d662e3d481bd80f768656d682cb65a (diff)
Send DiscoverableTimeoutChanged signal
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 8fdfb73d..de2c69d2 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -504,7 +504,7 @@ static DBusHandlerResult adapter_set_discoverable_to(DBusConnection *conn,
void *data)
{
struct adapter *adapter = data;
- DBusMessage *reply;
+ DBusMessage *reply, *signal;
DBusError err;
uint32_t timeout;
bdaddr_t bdaddr;
@@ -542,6 +542,11 @@ static DBusHandlerResult adapter_set_discoverable_to(DBusConnection *conn,
str2ba(adapter->address, &bdaddr);
write_discoverable_timeout(&bdaddr, timeout);
+ signal = dev_signal_factory(adapter->dev_id, "DiscoverableTimeoutChanged",
+ DBUS_TYPE_UINT32, &timeout,
+ DBUS_TYPE_INVALID);
+ send_message_and_unref(conn, signal);
+
return send_message_and_unref(conn, reply);
}