aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2011-03-28 19:40:47 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-30 19:15:46 +0300
commit279a53827334deab5093876e27261d38937bda36 (patch)
tree1346e037586f1c32fa000ca506c85bdeed01c3ee /attrib/client.c
parentc6477c3cccb3fb160985bfab8604d31d1e2a66f0 (diff)
downloadbluez-279a53827334deab5093876e27261d38937bda36.tar.gz
bluez-279a53827334deab5093876e27261d38937bda36.tar.xz
bluez-279a53827334deab5093876e27261d38937bda36.zip
Register Attrib interface when loading device from storage
Now that the GATT client functionality is being moved to the core we need to register the interface when the device is created.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 54bdc793..590f33b5 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -1044,12 +1044,11 @@ static void register_primaries(struct gatt_service *gatt, GSList *primaries)
}
}
-int attrib_client_register(struct btd_device *device, int psm)
+int attrib_client_register(struct btd_device *device, int psm, GSList *primaries)
{
struct btd_adapter *adapter = device_get_adapter(device);
const char *path = device_get_path(device);
struct gatt_service *gatt;
- GSList *primaries = btd_device_get_primaries(device);
bdaddr_t sba, dba;
adapter_get_address(adapter, &sba);