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:
parent
db025e26a6
commit
c7375079cc
4 changed files with 16 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue