Bluetooth: Audio: VCS client return pointer to instance on discover

Add return of instance pointer in bt_vcs_discover so that a client
will get a bt_vcs pointer when doing discover, which will be
used going forward in the API.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-05-28 15:00:43 +02:00 committed by Carles Cufí
commit c7375079cc
4 changed files with 16 additions and 7 deletions

View file

@ -188,15 +188,17 @@ struct bt_vcs_cb {
*
* This will start a GATT discovery and setup handles and subscriptions.
* This shall be called once before any other actions can be
* executed for the peer device.
* executed for the peer device, and the @ref bt_vcs_discover_cb callback
* will notify when it is possible to start remote operations.
*
* This shall only be done as the client,
*
* @param conn The connection to discover Volume Control Service for.
* @param conn The connection to discover Volume Control Service for.
* @param[out] vcs Valid remote instance object on success.
*
* @return 0 if success, errno on failure.
*/
int bt_vcs_discover(struct bt_conn *conn);
int bt_vcs_discover(struct bt_conn *conn, struct bt_vcs **vcs);
/**
* @brief Set the Volume Control Service volume step size.