Use Trusted Profiles instead of Restricted Profiles 09/143609/3
authorBiman Paul <biman.paul@samsung.com>
Fri, 4 Aug 2017 14:29:40 +0000 (19:59 +0530)
committerBiman Paul <biman.paul@samsung.com>
Fri, 11 Aug 2017 09:13:53 +0000 (14:43 +0530)
commitc396c5b362f3c376c1afb390c23476ae9f482697
tree3d539251b17090794a8487381f239304e88b0fbf
parent45b77e3110ae4ae49226ff529fa3018bc7ffa1c0
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: I0200611a54745f4fc701e7d5e4ace4e1d31b898c
Signed-off-by: Biman Paul <biman.paul@samsung.com>
profiles/audio/a2dp.c
src/device.c
src/device.h
src/profile.c