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

@ -911,6 +911,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
if ((res = do_start(this)) < 0)
return res;
break;
case SPA_NODE_COMMAND_Suspend:
case SPA_NODE_COMMAND_Pause:
if ((res = do_stop(this)) < 0)
return res;