Commit: d6254b41132baa8797f79e55446939495dc3f514
Parent: 266635500b47329d5365b8f84565e1ea9324972c
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-04-26 10:29:36
Tree: 93313b8d587613cfa70ee53473f6535de2701bdf

profile: Use btd_service for probing profiles Change the profile probe mechanism in order to pass the btd_service instance representing the remote service. This object is bound to a btd_profile and a btd_device, thus replacing the previous parameters. The probe callback is allowed to hold a reference to the btd_service by means of btd_service_ref(), which should be unreferenced during removal. Keeping such a reference of the btd_service allows supporting multiple instances of the same UUID, since the reference can serve as a handle during the interactions between the profile implementation and the core.

Diffstat

M profiles/audio/manager.c | 14 ++++++++++- - - -
M profiles/cyclingspeed/cyclingspeed.c | 8 +++++- - -
M profiles/deviceinfo/deviceinfo.c | 10 ++++++- - - -
M profiles/gatt/gas.c | 9 ++++++- - -
M profiles/health/hdp_manager.c | 9 +++++++- -
M profiles/heartrate/heartrate.c | 10 ++++++- - - -
M profiles/input/device.c | 14 +++++++++- - - - -
M profiles/input/device.h | 4 ++- -
M profiles/input/hog.c | 7 +++++- -
M profiles/input/manager.c | 1 +
M profiles/network/connection.c | 9 +++++++- -
M profiles/network/connection.h | 4 ++- -
M profiles/network/manager.c | 1 +
M profiles/proximity/manager.c | 28 ++++++++++++++++- - - - - - - - - - - -
M profiles/proximity/reporter.c | 7 +++++- -
M profiles/proximity/reporter.h | 4 ++- -
M profiles/sap/manager.c | 1 +
M profiles/scanparam/scan.c | 8 ++++++- -
M profiles/thermometer/thermometer.c | 10 ++++++- - - -
M src/profile.c | 8 ++++++- -
M src/profile.h | 7 ++++- - -
M src/service.c | 4 ++- -

22 files changed, 115 insertions(+), 62 deletions(-)

View Full Diff | Patch