diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2013-04-26 11:46:25 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-04-26 14:48:32 +0300 |
commit | 10620c1c0fbb211455fde597a1d2e5e47806f25d (patch) | |
tree | 70807220fbbbd9a104887ccad265d87e43730409 /src/profile.h | |
parent | 32a4ce9475d5804b854df0ec145c535b11b147a5 (diff) | |
download | bluez-10620c1c0fbb211455fde597a1d2e5e47806f25d.tar.gz |
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 (limited to 'src/profile.h')
-rw-r--r-- | src/profile.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/profile.h b/src/profile.h index 8daa358d7..9aec27e97 100644 --- a/src/profile.h +++ b/src/profile.h @@ -39,10 +39,8 @@ struct btd_profile { int (*device_probe) (struct btd_service *service); void (*device_remove) (struct btd_service *service); - int (*connect) (struct btd_device *device, - struct btd_profile *profile); - int (*disconnect) (struct btd_device *device, - struct btd_profile *profile); + int (*connect) (struct btd_service *service); + int (*disconnect) (struct btd_service *service); int (*adapter_probe) (struct btd_profile *p, struct btd_adapter *adapter); |