Commit: 10620c1c0fbb211455fde597a1d2e5e47806f25d
Parent: 32a4ce9475d5804b854df0ec145c535b11b147a5
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-04-26 14:48:32
Tree: 70807220fbbbd9a104887ccad265d87e43730409

profile: Use btd_service for connect/disconnect Change the btd_profile connect/disconnect callbacks to receive a btd_service pointer. This should make it possible to handle multiple instances of the same profile in a specific device. The patch strongly influences how the profiles should interact with the core. The state transitions, previously reported using the device.h API (device_profile_connected() and device_profile_disconnected()), have now been replaced by the btd_service API. The transitions will then be propagated to device.c by means of the conventional state-changed callback mechanism.

Diffstat

M Makefile.plugins | 4 ++- -
M profiles/audio/control.c | 20 ++++- - - - - - - - - - - - - - - -
M profiles/audio/manager.c | 44 ++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/audio/manager.h | 5 - - - - -
M profiles/audio/sink.c | 18 +++++++++- - - - - - - - -
M profiles/audio/source.c | 18 +++++++++- - - - - - - - -
M profiles/input/device.c | 21 ++++++++- - - - - - - - - - - - -
M profiles/input/device.h | 5 ++- - -
M profiles/input/manager.c | 11 - - - - - - - - - - -
D profiles/input/manager.h | 25 - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/network/connection.c | 39 +++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - -
M profiles/network/connection.h | 4 ++- -
M profiles/network/manager.c | 79 ++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D profiles/network/manager.h | 25 - - - - - - - - - - - - - - - - - - - - - - - - -
M src/device.c | 33 +++++++++++++++++++++- - - - - - - - - - - -
M src/device.h | 7 - - - - - - -
M src/profile.c | 29 ++++++++++++++++++- - - - - - - - - - -
M src/profile.h | 6 ++- - - -
M src/service.c | 4 ++- -

19 files changed, 108 insertions(+), 289 deletions(-)

View Full Diff | Patch