summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-09 22:20:29 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-09 22:20:29 +0000
commit8d8f45c98ddabe1ffb5b2b4f93fa3983027ba740 (patch)
tree07f72a8765dec41415ffd4f68f13cf9c3cf899b6 /hcid/device.c
parent60202f31c998cc68c14f57c91e4b40d2c39f95f2 (diff)
Fix DeviceCreated/DeviceRemoved signal being emitted for temporary devices.
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c
index 32567851..1a0840e5 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -1114,6 +1114,11 @@ static void browse_cb(gpointer user_data, sdp_list_t *recs, int err)
DBUS_TYPE_ARRAY, &uuids);
g_free(uuids);
+ dbus_connection_emit_signal(req->conn, dbus_message_get_path(req->msg),
+ ADAPTER_INTERFACE, "DeviceCreated",
+ DBUS_TYPE_OBJECT_PATH, &device->path,
+ DBUS_TYPE_INVALID);
+
/* Reply create device request */
reply = dbus_message_new_method_return(req->msg);
if (!reply)