bluetooth: Add "valid" flag to pa_bluetooth_adapter

System Internals / PulseAudio - Tanu Kaskinen [linux.intel.com] - 6 June 2014 07:05 UTC

This is a cosmetic change. There are a couple of places where we check whether the adapter object is valid, and while checking whether the address property is set works just fine, I find it nicer to have a dedicated flag for the object validity. This improves maintainability too, because if there will ever be more adapter properties that affect the adapter validity, the places that check if the adapter is valid don't need to be updated.

a61d065 bluetooth: Add "valid" flag to pa_bluetooth_adapter
src/modules/bluetooth/bluez5-util.c | 5 +++--
src/modules/bluetooth/bluez5-util.h | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share