Bluetooth: Audio: MICS introduce opaque bt_mics struct

Add a bt_mics struct that represents a MICS instance,
either a local (server) or remote (client) instance.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-06-08 13:37:46 +02:00 committed by Carles Cufí
commit d6fd79f65d
6 changed files with 63 additions and 42 deletions

View file

@ -41,6 +41,9 @@ extern "C" {
#define BT_MICS_MUTE_MUTED 0x01
#define BT_MICS_MUTE_DISABLED 0x02
/** @brief Opaque Microphone Input Control Service instance. */
struct bt_mics;
/** @brief Register parameters structure for Microphone Input Control Service */
struct bt_mics_register_param {
/** Register parameter structure for Audio Input Control Services */
@ -70,11 +73,13 @@ struct bt_mics_included {
* This will enable the service and make it discoverable by clients.
* This can only be done as the server.
*
* @param param Pointer to an initialization structure.
* @param param Pointer to an initialization structure.
* @param[out] mics Pointer to the registered Microphone Input Control Service.
*
* @return 0 if success, errno on failure.
*/
int bt_mics_register(struct bt_mics_register_param *param);
int bt_mics_register(struct bt_mics_register_param *param,
struct bt_mics **mics);
/**
* @brief Get Microphone Input Control Service included services