Bluetooth: Audio: MICS client add function to get conn pointer
Add a function that returns the bluetooth connection pointer of a given MICS client instance. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
12103771af
commit
973e88104f
3 changed files with 47 additions and 0 deletions
|
@ -97,6 +97,19 @@ int bt_mics_register(struct bt_mics_register_param *param,
|
|||
int bt_mics_included_get(struct bt_mics *mics,
|
||||
struct bt_mics_included *included);
|
||||
|
||||
/**
|
||||
* @brief Get the connection pointer of a client instance
|
||||
*
|
||||
* Get the Bluetooth connection pointer of a Microphone Input Control Service
|
||||
* client instance.
|
||||
*
|
||||
* @param mics Microphone Input Control Service client instance pointer.
|
||||
* @param conn Connection pointer.
|
||||
*
|
||||
* @return 0 if success, errno on failure.
|
||||
*/
|
||||
int bt_mics_client_conn_get(const struct bt_mics *mics, struct bt_conn **conn);
|
||||
|
||||
/**
|
||||
* @brief Callback function for @ref bt_mics_discover.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue