Bluetooth: Audio: VCS introduce opaque bt_vcs struct

Add a bt_vcs struct that represents a VCS 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-05-27 22:46:30 +02:00 committed by Carles Cufí
commit db025e26a6
6 changed files with 80 additions and 64 deletions

View file

@ -39,6 +39,9 @@ extern "C" {
#define BT_VCS_ERR_INVALID_COUNTER 0x80
#define BT_VCS_ERR_OP_NOT_SUPPORTED 0x81
/** @brief Opaque Volume Control Service instance. */
struct bt_vcs;
/** Register structure for Volume Control Service */
struct bt_vcs_register_param {
/** Register parameters for Volume Offset Control Services */
@ -77,10 +80,11 @@ struct bt_vcs_included {
* clients.
*
* @param param Volume Control Service register parameters.
* @param[out] vcs Pointer to the registered Volume Control Service.
*
* @return 0 if success, errno on failure.
*/
int bt_vcs_register(struct bt_vcs_register_param *param);
int bt_vcs_register(struct bt_vcs_register_param *param, struct bt_vcs **vcs);
/**
* @brief Get Volume Control Service included services.