Parent: 1f38c67bec894f704de9dda18eea06bc3436252a
Author: Bruna Moreira <bruna.moreira@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-02-16 15:11:29
Tree: ea3276c2c4d0609ab8683a6435edf7f5ec0b752b
thermometer: Fix device driver probe The probe() function for GATT profiles should be transport agnostic. There is a btd_device_get_primaries() method which can be used to return a list of discovered GATT Primary Services, and it works for BR/EDR and LE. It is already used for Proximity, for instance. device_services_from_record() is BR/EDR specific and should not be used by GATT profile code. It also fixes a memory leak, given device_services_from_record() returns a heap allocated GSList.
Diffstat
| M | thermometer/manager.c | | | 19 | +++++++++++++++- - - - |
1 files changed, 15 insertions(+), 4 deletions(-)