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