Bluetooth: CAP: Add reference to the set member for CAP discover

Since the CSIP API expects a set member struct for nearly all
functionality, the reference to the full set member (along with
the CAS specific CSIS) should be given to the application.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-05-15 14:08:48 +02:00 committed by Johan Hedberg
commit f58ac3476f
17 changed files with 59 additions and 15 deletions

View file

@ -36,6 +36,7 @@ CREATE_FLAG(flag_microphone_mute_changed);
CREATE_FLAG(flag_microphone_gain_changed);
static void cap_discovery_complete_cb(struct bt_conn *conn, int err,
const struct bt_csip_set_coordinator_set_member *member,
const struct bt_csip_set_coordinator_csis_inst *csis_inst)
{
if (err != 0) {

View file

@ -185,6 +185,7 @@ static struct bt_bap_stream_ops unicast_stream_ops = {
};
static void cap_discovery_complete_cb(struct bt_conn *conn, int err,
const struct bt_csip_set_coordinator_set_member *member,
const struct bt_csip_set_coordinator_csis_inst *csis_inst)
{
if (err != 0) {

View file

@ -263,6 +263,7 @@ static struct bt_bap_stream_ops stream_ops = {
};
static void cap_discovery_complete_cb(struct bt_conn *conn, int err,
const struct bt_csip_set_coordinator_set_member *member,
const struct bt_csip_set_coordinator_csis_inst *csis_inst)
{
if (err != 0) {