Bluetooth: BAP: Modify unicast client callbacks to slist

Modify the BAP unicast client callback structure to be a
linked list. The purpose of this is to have multiple listeners
of the unicast client changes and notifications.
This is needed for the CAP initiatior.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-09-25 14:56:45 +02:00 committed by Alberto Escolar
commit e7e7386352
4 changed files with 239 additions and 130 deletions

View file

@ -349,7 +349,7 @@ static void endpoint_cb(struct bt_conn *conn, enum bt_audio_dir dir, struct bt_b
}
}
static const struct bt_bap_unicast_client_cb unicast_client_cbs = {
static struct bt_bap_unicast_client_cb unicast_client_cbs = {
.discover = discover_cb,
.pac_record = pac_record_cb,
.endpoint = endpoint_cb,