From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> Disclaimer: these patches are intended for the next branch and they don't even apply to the current upstream master. There are two main changes in the bluetooth roadmap: 1. Refactor the hooks to centralize them in a similar way that the PA core does. 2. Refactor the Bluetooth code so that the transition to BlueZ 5 is easier. Before addressing these changes, this patchset proposes some code cleanup. Mikel Astiz (8): bluetooth: Fix condition to load module bluetooth: Make pa_bluetooth_transport_parse_property() private bluetooth: Use ceil() to round up volume bluetooth: Remove unused pa_bluetooth_discovery_get_transport() bluetooth: Add device pointer to transport bluetooth: Add transport hashmap to discovery bluetooth: Use transport array instead of hashmap for devices bluetooth: Remove pa_bluetooth_device_get_transport() src/modules/bluetooth/bluetooth-util.c | 113 ++++++++++-------------- src/modules/bluetooth/bluetooth-util.h | 9 +- src/modules/bluetooth/module-bluetooth-device.c | 28 ++---- 3 files changed, 57 insertions(+), 93 deletions(-) -- 1.7.11.7