summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-09-03 12:48:04 +0530
committerAlok Barsode <alok.barsode@azingo.com>2008-09-03 12:48:04 +0530
commitc2193535f413360a45dbcdd017f13755367f2599 (patch)
tree8fc1f79d5afed8b05d3dc22a83911ad2a9f31056 /src/dbus-hci.c
parent3692b8262294723c1fcfc75e759e59570557f949 (diff)
Adding adapter_add_active_conn.
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 604011f0..79cb8d30 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -110,20 +110,6 @@ static int active_conn_find_by_handle(const void *data, const void *user_data)
return -1;
}
-static int active_conn_append(GSList **list, bdaddr_t *bdaddr,
- uint16_t handle)
-{
- struct active_conn_info *dev;
-
- dev = g_new0(struct active_conn_info, 1);
-
- bacpy(&dev->bdaddr, bdaddr);
- dev->handle = handle;
-
- *list = g_slist_append(*list, dev);
- return 0;
-}
-
DBusMessage *new_authentication_return(DBusMessage *msg, uint8_t status)
{
switch (status) {
@@ -1130,7 +1116,7 @@ void hcid_dbus_conn_complete(bdaddr_t *local, uint8_t status, uint16_t handle,
}
/* add in the active connetions list */
- active_conn_append(&adapter->active_conn, peer, handle);
+ adapter_add_active_conn(adapter, peer, handle);
}
}