]> code.delx.au - pulseaudio/commit
bluetooth: Remove device_remove_all()
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 15 Nov 2013 14:29:40 +0000 (16:29 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 20 Nov 2013 13:49:06 +0000 (15:49 +0200)
commite2dea40f4af744b97b80c49679fadc7f9acd3f7c
tree38b12e54f577ed9da91625664b3df6441f627907
parent454ca62b235a2f9089e3780b14ae01397515081e
bluetooth: Remove device_remove_all()

The function did two things: set device_info_valid to -1 and called
device_free() for each device in the hashmap. Setting
device_info_valid to -1 was unnecessary. The main purpose of that was
to fire DEVICE_CONNECTION_CHANGED as a side effect, but that hook is
fired anyway in device_free(), as a side effect of removing all
transports. Calling device_free() can be delegated to pa_hashmap, when
freeing or emptying it.
src/modules/bluetooth/bluez5-util.c