pulseaudio/src/modules/bluetooth
Tanu Kaskinen 0df4d56cf8 bluetooth: Move stuff to pa_bluetooth_transport_put/unlink()
This should not have any effect on behaviour. The goal is to align
with the pattern that I think we should follow:

Object initialization:
 - put() is the place to create references from other objects to the
   newly created object. In this case, adding the transport to
   discovery->transports was moved from new() to put, and adding the
   transport to device->transports was moved from set_state() to
   put().

Object destruction:
 - unlink() undoes put() and removes all references from other objects
   to the object being unlinked. In this case setting the
   device->transports pointer to NULL was moved from set_state() to
   unlink(), and setting the discovery->transports pointer to NULL was
   moved from free() to unlink().
 - free() undoes new(), but also calls unlink() so that object owners
   don't need to remember to call unlink() before free().
2014-10-19 14:04:46 +03:00
..
a2dp-codecs.h bluetooth: audio: Update license for shared header files 2011-10-28 15:43:42 +02:00
backend-null.c bluetooth: Add discovery to pa_bluetooth_backend_new 2014-09-10 13:25:36 +03:00
backend-ofono.c bluetooth: Move stuff to pa_bluetooth_transport_put/unlink() 2014-10-19 14:04:46 +03:00
bluez4-util.c bluetooth: Prefix BlueZ 4 card profiles enum with PA_BLUEZ4_ 2013-09-29 16:54:36 +03:00
bluez4-util.h bluetooth: Prefix BlueZ 4 card profiles enum with PA_BLUEZ4_ 2013-09-29 16:54:36 +03:00
bluez5-util.c bluetooth: Move stuff to pa_bluetooth_transport_put/unlink() 2014-10-19 14:04:46 +03:00
bluez5-util.h bluetooth: Add discovery to pa_bluetooth_backend_new 2014-09-10 13:25:36 +03:00
module-bluetooth-discover.c bluetooth: Track discovery modules by index 2013-10-15 10:42:25 +03:00
module-bluetooth-policy.c bluetooth: Allow policy module to pick 'off' profile 2014-09-18 10:54:23 +03:00
module-bluez4-device.c bluetooth: bluez4: Add profile name to sinks and sources 2014-09-28 13:34:27 +03:00
module-bluez4-discover.c bluetooth: Name BlueZ 4 symbols accordingly 2013-09-29 16:54:36 +03:00
module-bluez5-device.c bluetooth: Switch transport state to idle in case of HUP 2014-09-18 10:53:49 +03:00
module-bluez5-discover.c bluetooth: Fail to load driver if discovery module is not loaded 2013-09-29 16:54:38 +03:00
rtp.h bluetooth: Run 'make update-sbc' 2011-03-20 12:49:49 +00:00