1 /* @file
2  * @brief Internal APIs for BAP
3 
4  * Copyright (c) 2021-2023 Nordic Semiconductor ASA
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 #include <stdint.h>
10 #include <stddef.h>
11 
12 #include <zephyr/bluetooth/audio/audio.h>
13 #include <zephyr/bluetooth/audio/bap.h>
14 #include <zephyr/bluetooth/conn.h>
15 #include <zephyr/bluetooth/iso.h>
16 #include <zephyr/net_buf.h>
17 
18 int bt_bap_unicast_client_config(struct bt_bap_stream *stream,
19 				 const struct bt_audio_codec_cfg *codec_cfg);
20 
21 int bt_bap_unicast_client_qos(struct bt_conn *conn, struct bt_bap_unicast_group *group);
22 
23 int bt_bap_unicast_client_enable(struct bt_bap_stream *stream, const uint8_t meta[],
24 				 size_t meta_len);
25 
26 int bt_bap_unicast_client_metadata(struct bt_bap_stream *stream, const uint8_t meta[],
27 				   size_t meta_len);
28 
29 int bt_bap_unicast_client_disable(struct bt_bap_stream *stream);
30 
31 int bt_bap_unicast_client_start(struct bt_bap_stream *stream);
32 int bt_bap_unicast_client_connect(struct bt_bap_stream *stream);
33 
34 int bt_bap_unicast_client_stop(struct bt_bap_stream *stream);
35 
36 int bt_bap_unicast_client_release(struct bt_bap_stream *stream);
37 
38 struct net_buf_simple *bt_bap_unicast_client_ep_create_pdu(struct bt_conn *conn, uint8_t op);
39 
40 int bt_bap_unicast_client_ep_qos(struct bt_bap_ep *ep, struct net_buf_simple *buf,
41 				 struct bt_bap_qos_cfg *qos);
42 
43 int bt_bap_unicast_client_ep_send(struct bt_conn *conn, struct bt_bap_ep *ep,
44 				  struct net_buf_simple *buf);
45 
46 struct bt_bap_iso *bt_bap_unicast_client_new_audio_iso(void);
47