bluetooth: refactor BlueZ 4 transport state setting
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 7 Aug 2016 15:45:54 +0000 (18:45 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 10 Aug 2016 18:37:33 +0000 (21:37 +0300)
commit83ac6c5ae52d8463f479b84a0829597f3b470caf
tree4ec6683fe24c9832b792c722fffec96d48be4897
parent15e3d828dd4e811f558ec98f4d6fb4df7df84e30
bluetooth: refactor BlueZ 4 transport state setting

Add transport_set_state() that encapsulates changing the variable,
logging and firing the change hook.

I also made a cosmetic change to the corresponding BlueZ 5 log
message so that both messages have the format that I like.
src/modules/bluetooth/bluez4-util.c
src/modules/bluetooth/bluez5-util.c