aboutsummaryrefslogtreecommitdiff
path: root/src/adapter.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2011-04-11 15:24:27 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-04-14 20:09:30 +0300
commit5eb9d13c5b75f3659454466d511533c2f413cbbd (patch)
tree938c510c56cd3aefc22c46864960a04da6f0c447 /src/adapter.c
parent612d0207646064f309edd564a69d30b42de9e26f (diff)
downloadbluez-5eb9d13c5b75f3659454466d511533c2f413cbbd.tar.gz
Cleanup primary service registration from storage
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/adapter.c b/src/adapter.c
index c400bfd7..6caff9a2 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -58,8 +58,6 @@
#include "storage.h"
#include "attrib-server.h"
#include "att.h"
-#include "gattrib.h"
-#include "attrib/client.h"
/* Interleaved discovery window: 5.12 sec */
#define GAP_INTER_DISCOV_WIN 5120
@@ -2193,16 +2191,11 @@ static void create_stored_device_from_primary(char *key, char *value,
for (l = services, uuids = NULL; l; l = l->next) {
struct att_primary *prim = l->data;
uuids = g_slist_append(uuids, prim->uuid);
-
- device_add_primary(device, prim);
}
- /* FIXME: Need the correct psm */
- attrib_client_register(connection, device, -1, NULL, services);
-
device_probe_drivers(device, uuids);
+ device_register_services(connection, device, services, -1);
- g_slist_free(services);
g_slist_free(uuids);
}