OSDN Git Service

device: Use btd_service to represent profiles
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 26 Apr 2013 06:17:08 +0000 (08:17 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 26 Apr 2013 07:25:17 +0000 (10:25 +0300)
commita870ebe310e4e0c01055bb19f0440068ee0c84f7
tree1d78edbd13dca66e8487288ca703d3caddae1747
parentb5c339804950551cba3bc07051dc339ad0a1db2c
device: Use btd_service to represent profiles

Maintain a list of btd_service pointers instead of btd_profile pointers,
for services that have been probed for this device.

This list will not only reference count the btd_service instances but
also "own" them, in the sense of destroying them (make them completely
unavailable) when the service is removed from the list. This is needed
because the btd_service does not reference count the btd_device
instance.
src/device.c