From 4022022321e7422cfb9200e44f40573a19edd206 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 12 Mar 2008 13:30:23 +0000 Subject: Emitting DeviceCreated signal --- hcid/adapter.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hcid/adapter.c b/hcid/adapter.c index 23df94a5..850d9f2e 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3348,6 +3348,13 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err) DBUS_TYPE_INVALID); send_message_and_unref(adapter->create->conn, reply); + dbus_connection_emit_signal(adapter->create->conn, + dbus_message_get_path(adapter->create->msg), + ADAPTER_INTERFACE, + "DeviceCreated", + DBUS_TYPE_OBJECT_PATH, &path, + DBUS_TYPE_INVALID); + adapter->devices = g_slist_append(adapter->devices, g_strdup(path)); /* Store the device's profiles in the filesystem */ -- cgit