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:
parent
f5b0f92bb7
commit
d6fd79f65d
6 changed files with 63 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue