Use Trusted Profiles instead of Restricted Profiles 35/163035/1
authorBiman Paul <biman.paul@samsung.com>
Fri, 4 Aug 2017 14:09:20 +0000 (19:39 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 7 Dec 2017 04:20:58 +0000 (13:20 +0900)
commit843ba4a5c24adcefbf18fd1aa96237f7ce3daac3
tree1b802430cef121127bfac428bf2a00e025167fb0
parentbaafd71b1294da18908043ccb450a1bfaac62c75
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: Ib1b924d0d44cf3eeb07c9d43921e80054f1a8bfb
Signed-off-by: Biman Paul <biman.paul@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@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