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:
parent
cc1894b844
commit
f58ac3476f
17 changed files with 59 additions and 15 deletions
|
@ -16,6 +16,7 @@ void mock_cap_commander_init(void);
|
|||
void mock_cap_commander_cleanup(void);
|
||||
|
||||
DECLARE_FAKE_VOID_FUNC(mock_cap_commander_discovery_complete_cb, struct bt_conn *, int,
|
||||
const struct bt_csip_set_coordinator_set_member *,
|
||||
const struct bt_csip_set_coordinator_csis_inst *);
|
||||
DECLARE_FAKE_VOID_FUNC(mock_cap_commander_volume_changed_cb, struct bt_conn *, int);
|
||||
DECLARE_FAKE_VOID_FUNC(mock_cap_commander_volume_mute_changed_cb, struct bt_conn *, int);
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
FAKE(mock_cap_commander_microphone_gain_changed_cb)
|
||||
|
||||
DEFINE_FAKE_VOID_FUNC(mock_cap_commander_discovery_complete_cb, struct bt_conn *, int,
|
||||
const struct bt_csip_set_coordinator_set_member *,
|
||||
const struct bt_csip_set_coordinator_csis_inst *);
|
||||
|
||||
DEFINE_FAKE_VOID_FUNC(mock_cap_commander_volume_changed_cb, struct bt_conn *, int);
|
||||
|
|
|
@ -50,6 +50,7 @@ static void btp_send_discovery_completed_ev(struct bt_conn *conn, uint8_t status
|
|||
}
|
||||
|
||||
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)
|
||||
{
|
||||
LOG_DBG("");
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue