bluetooth: Use array to store profile states
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 6 Dec 2012 14:55:29 +0000 (15:55 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:48 +0000 (12:31 +0200)
commit726435045e838ad0bc848265ffbc9b418eb5ffca
tree6fe9072ec742eb042bf3ba03baa26d6aaf1551d9
parent689f9413ad64822d75943789c45fe89c5a43a730
bluetooth: Use array to store profile states

Refactor the code to use an array of states instead of independent
member fields, avoiding duplicated code and improving readability.
src/modules/bluetooth/bluetooth-util.c
src/modules/bluetooth/bluetooth-util.h
src/modules/bluetooth/module-bluetooth-device.c