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:
parent
946013e25f
commit
5d4992ae25
3 changed files with 47 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue