aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/manager.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-09-24 15:58:56 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2010-09-30 17:26:55 -0300
commitb3d33e592dea372f4e58ed3cf2ad76e7e23aaa10 (patch)
tree30449cd7c4d54780d3fe8cefa27b9ad00841f9cc /attrib/manager.c
parent7d1303515311368d37aae172a72b650d2cdc3f65 (diff)
downloadbluez-b3d33e592dea372f4e58ed3cf2ad76e7e23aaa10.tar.gz
bluez-b3d33e592dea372f4e58ed3cf2ad76e7e23aaa10.tar.xz
bluez-b3d33e592dea372f4e58ed3cf2ad76e7e23aaa10.zip
Add "Services" property in the org.bluez.Device interface
Add a new property "Services" representing the object paths of the available GATT primary services. "Services" is an array of D-Bus object paths.
Diffstat (limited to 'attrib/manager.c')
-rw-r--r--attrib/manager.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/attrib/manager.c b/attrib/manager.c
index 31a3efc3..9bd1774f 100644
--- a/attrib/manager.c
+++ b/attrib/manager.c
@@ -43,11 +43,8 @@ static DBusConnection *connection;
static int client_probe(struct btd_device *device, GSList *uuids)
{
- struct btd_adapter *adapter = device_get_adapter(device);
- const char *path = device_get_path(device);
const sdp_record_t *rec;
sdp_list_t *list;
- bdaddr_t sba, dba;
int psm;
/*
@@ -69,17 +66,12 @@ static int client_probe(struct btd_device *device, GSList *uuids)
if (psm < 0)
return -1;
- adapter_get_address(adapter, &sba);
- device_get_address(device, &dba);
-
- return attrib_client_register(&sba, &dba, path, psm);
+ return attrib_client_register(device, psm);
}
static void client_remove(struct btd_device *device)
{
- const char *path = device_get_path(device);
-
- attrib_client_unregister(path);
+ attrib_client_unregister(device);
}
static struct btd_device_driver client_driver = {