Use Trusted Profiles instead of Restricted Profiles 12/143612/3
authorBiman Paul <biman.paul@samsung.com>
Fri, 4 Aug 2017 14:09:20 +0000 (19:39 +0530)
committerBiman Paul <biman.paul@samsung.com>
Fri, 11 Aug 2017 09:13:27 +0000 (14:43 +0530)
commit271615462822024cacfd279d7eb1970698fa80b7
tree0829dd80a1cb175741356290ffaf9d7fc690424c
parentef7a9a244b4a640756c30121b813a9a6f6758771
Use Trusted Profiles instead of Restricted Profiles

Trusted profiles and restricted profiles concept are similar.
Trusted profiles concept supports 3 states for each profile:
1. Unknown state: Let the user decide using authorization.
2. Blocked: Do not allow connection
3. Trusted: Always accept connection
In case of restricted profiles we only have Blocked and Trusted
states but Unknown state can be treated as Trusted because by
default, we should allow connection in case of Audio profiles.
We can remove Restricted Profiles implementation and this would
reduce redundant code.

Change-Id: Idd38fc74c2115d6cd913680c549f9129d4a91439
Signed-off-by: Biman Paul <biman.paul@samsung.com>
bt-api/bt-common.c
bt-api/bt-device.c
bt-service/bt-request-handler.c
bt-service/bt-service-audio.c
bt-service/bt-service-common.c
bt-service/bt-service-device.c
bt-service/bt-service-event-receiver.c
bt-service/include/bt-service-device.h
include/bluetooth-api.h
include/bt-internal-types.h