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

Add a function that returns the bluetooth connection
pointer of a given VOCS client instance.

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

View file

@ -98,6 +98,19 @@ struct bt_vocs *bt_vocs_free_instance_get(void);
*/
void *bt_vocs_svc_decl_get(struct bt_vocs *vocs);
/**
* @brief Get the connection pointer of a client instance
*
* Get the Bluetooth connection pointer of a Audio Input Control Service
* client instance.
*
* @param vocs Audio Input Control Service client instance pointer.
* @param conn Connection pointer.
*
* @return 0 if success, errno on failure.
*/
int bt_vocs_client_conn_get(const struct bt_vocs *vocs, struct bt_conn **conn);
/**
* @brief Register the Volume Offset Control Service instance.
*