OSDN Git Service

profile: Use btd_service for connect/disconnect
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 26 Apr 2013 09:46:25 +0000 (11:46 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 26 Apr 2013 11:48:32 +0000 (14:48 +0300)
commit10620c1c0fbb211455fde597a1d2e5e47806f25d
tree70807220fbbbd9a104887ccad265d87e43730409
parent32a4ce9475d5804b854df0ec145c535b11b147a5
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.
19 files changed:
Makefile.plugins
profiles/audio/control.c
profiles/audio/manager.c
profiles/audio/manager.h
profiles/audio/sink.c
profiles/audio/source.c
profiles/input/device.c
profiles/input/device.h
profiles/input/manager.c
profiles/input/manager.h [deleted file]
profiles/network/connection.c
profiles/network/connection.h
profiles/network/manager.c
profiles/network/manager.h [deleted file]
src/device.c
src/device.h
src/profile.c
src/profile.h
src/service.c