Bluetooth: Audio: AICS client add function to get conn pointer
Add a function that returns the bluetooth connection pointer of a given AICS client instance. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
7e6d927467
commit
141620519b
4 changed files with 59 additions and 0 deletions
|
@ -131,6 +131,19 @@ struct bt_aics *bt_aics_free_instance_get(void);
|
|||
*/
|
||||
void *bt_aics_svc_decl_get(struct bt_aics *aics);
|
||||
|
||||
/**
|
||||
* @brief Get the connection pointer of a client instance
|
||||
*
|
||||
* Get the Bluetooth connection pointer of a Audio Input Control Service
|
||||
* client instance.
|
||||
*
|
||||
* @param aics Audio Input Control Service client instance pointer.
|
||||
* @param conn Connection pointer.
|
||||
*
|
||||
* @return 0 if success, errno on failure.
|
||||
*/
|
||||
int bt_aics_client_conn_get(const struct bt_aics *aics, struct bt_conn **conn);
|
||||
|
||||
/**
|
||||
* @brief Initialize the Audio Input Control Service instance.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue