bluez: implement profile on device

Enumerate the available profiles on the device. Make params
visible.

Implement set_profile, only expose the nodes that belong to the
profile.
This commit is contained in:
Wim Taymans 2020-01-10 13:25:40 +01:00
parent 5f70a2713e
commit 9db240e786
3 changed files with 90 additions and 35 deletions

View file

@ -109,8 +109,8 @@ extern "C" {
enum spa_bt_profile {
SPA_BT_PROFILE_NULL = 0,
SPA_BT_PROFILE_A2DP_SOURCE = (1 << 0),
SPA_BT_PROFILE_A2DP_SINK = (1 << 1),
SPA_BT_PROFILE_A2DP_SINK = (1 << 0),
SPA_BT_PROFILE_A2DP_SOURCE = (1 << 1),
SPA_BT_PROFILE_HSP_HS = (1 << 2),
SPA_BT_PROFILE_HSP_AG = (1 << 3),
SPA_BT_PROFILE_HFP_HF = (1 << 4),