Bluetooth: Audio: VCS client add function to get conn pointer

Add a function for the VCS client that gets the bluetooth
connection pointer if a given VCS client instance.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-06-09 10:26:13 +02:00 committed by Carles Cufí
commit 5d4992ae25
3 changed files with 47 additions and 0 deletions

View file

@ -102,6 +102,19 @@ int bt_vcs_register(struct bt_vcs_register_param *param, struct bt_vcs **vcs);
*/
int bt_vcs_included_get(struct bt_vcs *vcs, struct bt_vcs_included *included);
/**
* @brief Get the connection pointer of a client instance
*
* Get the Bluetooth connection pointer of a Volume Control Service
* client instance.
*
* @param vcs Volume Control Service client instance pointer.
* @param[out] conn Connection pointer.
*
* @return 0 if success, errno on failure.
*/
int bt_vcs_client_conn_get(const struct bt_vcs *vcs, struct bt_conn **conn);
/**
* @brief Callback function for bt_vcs_discover.
*