This adds a wrapper over bt_bass_check_bis, which receives a Broadcaster
device and a BIS index and checks is the Delegator has been instructed
to sync with the specific BIS transmitted by the Source.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
return dg->device == device;
}
+bool bass_check_bis(struct btd_device *device, uint8_t bis)
+{
+ struct bass_delegator *dg;
+
+ dg = queue_find(delegators, delegator_match_device, device);
+ if (!dg)
+ return true;
+
+ if (!bt_bass_check_bis(dg->src, bis))
+ return false;
+
+ return true;
+}
+
static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
uint8_t new_state, void *user_data)
{
bool bass_bcast_probe(struct btd_device *device, struct bt_bap *bap);
bool bass_bcast_remove(struct btd_device *device);
+
+bool bass_check_bis(struct btd_device *device, uint8_t bis);