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:
Emil Gydesen 2021-06-09 10:34:22 +02:00 committed by Anas Nashif
commit 141620519b
4 changed files with 59 additions and 0 deletions

View file

@ -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.
*