]> code.delx.au - pulseaudio/commit
bluetooth: Hold transport pointer while profile set
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 19 Oct 2012 08:11:28 +0000 (10:11 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 19 Oct 2012 15:36:48 +0000 (18:36 +0300)
commit1b83e3fe5fa5da3de564d802c77aebba9692b1cb
tree8ccb017f9eec5d69c9494297b71c08dc3f624b50
parent3ddff2f3e5e876d606d1180e3c957270fdc98625
bluetooth: Hold transport pointer while profile set

Instead of repeatedly asking the discovery API to find a transport given
our transport path, let's hold a pointer to the transport and make sure
we remove the reference when the hook is fired reporting that the
transport has been removed. This makes the code easier to follow and
slightly more efficient.
src/modules/bluetooth/module-bluetooth-device.c