aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-07-07 17:14:09 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-09 18:06:44 -0400
commit5f722b2780dae76a11ecf8822b9aec150cc0e3ff (patch)
tree9e9063187b5fb3693a94291c0572163ed2213db7 /attrib/manager.c
parent44a3a09fffc52f6848a9f0ce90fcb92d7cece0a8 (diff)
downloadbluez-5f722b2780dae76a11ecf8822b9aec150cc0e3ff.tar.gz
bluez-5f722b2780dae76a11ecf8822b9aec150cc0e3ff.tar.xz
bluez-5f722b2780dae76a11ecf8822b9aec150cc0e3ff.zip
Register fake characteristic object
Testing purpose only. This patch registers paths and interfaces for fake BLE service.
Diffstat (limited to 'attrib/manager.c')
-rw-r--r--attrib/manager.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/attrib/manager.c b/attrib/manager.c
index 9b99f16b..11f46fb3 100644
--- a/attrib/manager.c
+++ b/attrib/manager.c
@@ -37,9 +37,22 @@ 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);
+ bdaddr_t sba, dba;
- return attrib_client_register(path);
+ /*
+ * Entry point for BR/EDR GATT probe. LE scanning and primary service
+ * search will be handled temporaly inside the gatt plugin. For the
+ * final solution all LE operations should be moved to the "core",
+ * otherwise it will not be possible serialize/schedule BR/EDR device
+ * discovery and LE scanning.
+ */
+
+ adapter_get_address(adapter, &sba);
+ device_get_address(device, &dba);
+
+ return attrib_client_register(&sba, &dba, path);
}
static void client_remove(struct btd_device *device)