pulseaudio/src/modules/bluetooth
Tanu Kaskinen de0d803e3c bluetooth: Refactor device validity management
There are several intertwined changes that I couldn't separate into
nicer commits. This is mostly just refactoring, but this also fixes
a bug: the old code set the device valid in parse_device_properties()
even if the device's adapter was invalid (had NULL address).

To improve the clarity of the code, I split the device_info_valid
variable into two booleans: properties_received and valid.

I added function device_update_valid() that checks all conditions that
affect the device validity. The function can then be called from any
place where something changes that potentially affects the device
validity. However, currently the only validity-affecting thing that
can change is the device adapter, so device_update_valid() is only
called from set_device_adapter().

I added the aforementioned set_device_adapter() function so that
whenever the adapter is set, the device validity gets updated
automatically.

The new properties_received variable allowed me to remove the
is_property_update function parameters.
2014-06-06 15:05:45 +03:00
..
a2dp-codecs.h bluetooth: audio: Update license for shared header files 2011-10-28 15:43:42 +02: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: Refactor device validity management 2014-06-06 15:05:45 +03:00
bluez5-util.h bluetooth: Refactor device validity management 2014-06-06 15:05:45 +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: Change BlueZ 5 card profile name from a2dp to a2dp_sink 2014-05-25 12:24:17 +03:00
module-bluez4-device.c bluetooth: Fix timing to count based on decoded data 2014-03-03 18:06:21 +02:00
module-bluez4-discover.c bluetooth: Name BlueZ 4 symbols accordingly 2013-09-29 16:54:36 +03:00
module-bluez5-device.c bluetooth: Notify the main thread of a stream fd HUP 2014-06-01 14:45:31 +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