summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-11 19:53:18 +0000
committerVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-11 19:53:18 +0000
commita8181a256a25ec21661d9bf8b4248d1c69962f76 (patch)
treed5a1ee3be435b1bf9d93a2f3bd1c515f90cdf059 /hcid
parent7ac7ec4e9be4a28d906fa152bfdd1e7e7ceed6f6 (diff)
hcid: now the DeviceCreated signal is sent only when the pairing is complete.
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-hci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index f91c8901..36c9a9bd 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -1093,7 +1093,17 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer,
device = adapter_get_device(connection, adapter, paddr);
if (device) {
+ char *ptr = path + ADAPTER_PATH_INDEX;
+
device->temporary = FALSE;
+
+ dbus_connection_emit_signal(connection, ptr,
+ ADAPTER_INTERFACE,
+ "DeviceCreated",
+ DBUS_TYPE_OBJECT_PATH,
+ &device->path,
+ DBUS_TYPE_INVALID);
+
dbus_connection_emit_property_changed(connection, device->path,
DEVICE_INTERFACE, "Paired",
DBUS_TYPE_BOOLEAN, &paired);