summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
authorVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-07 22:18:30 +0000
committerVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-07 22:18:30 +0000
commit38e740cddb16d29f4dae3b289dcd0830d6246988 (patch)
treee711d24fa6d548ce909add371ec622f82a00d9b9 /hcid/adapter.c
parent4b9108cea90e4df390092883976b4d3988f0622e (diff)
hcid: temporary devices, now devices created at incoming pairing are removed on disconnect.
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 71b79d83..1ffce314 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -2302,6 +2302,7 @@ struct device *adapter_get_device(DBusConnection *conn,
if (!device)
return NULL;
+ device->temporary = TRUE;
snprintf(path, MAX_PATH_LENGTH, "/hci%d", adapter->dev_id);
adapter->devices = g_slist_append(adapter->devices, device);
@@ -3746,6 +3747,7 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err)
if (!device)
goto failed;
+ device->temporary = FALSE;
/* Reply create device request */
reply = dbus_message_new_method_return(adapter->create->msg);
if (!reply)