]> code.delx.au - pulseaudio/commit
bluetooth: Use transport array instead of hashmap for devices
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 6 Dec 2012 09:35:19 +0000 (10:35 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:48 +0000 (12:31 +0200)
commitfaaf8cd39e2e19beff7f6749fd1555057fd50394
tree78eb5392a0ab7776d40b74bbb7f98647efd921b8
parent51d28e63310f5a02562e3e5bddf59fa78cbad168
bluetooth: Use transport array instead of hashmap for devices

Devices will have zero or one transports per profile, and besides the
typical lookup is also profile-based. Therefore, replace the old hashmap
(which used the transport path as key) with a simple array which holds
a transport pointer per profile.
src/modules/bluetooth/bluetooth-util.c
src/modules/bluetooth/bluetooth-util.h