Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Sep 22, 2025

Add a new function, bt_bap_ep_get_conn, which returns
the ACL connection for the endpoint. This works because
endpoints are specific to an ACL in BAP. The function
returns a pointer with a new reference similar to the
lookup functions from conn.h

The conn pointer was not added to the bt_bap_ep_info
struct, as doing so would be more likely to cause
reference leaks if the caller did not care about the
conn pointer when using bt_bap_ep_get_info. It can be
added later if that is requested.

@Thalley
Copy link
Contributor Author

Thalley commented Sep 22, 2025

Depends on #95605

Add a new function, bt_bap_ep_get_conn, which returns
the ACL connection for the endpoint. This works because
endpoints are specific to an ACL in BAP. The function
returns a pointer with a new reference similar to the
lookup functions from conn.h

The conn pointer was not added to the bt_bap_ep_info
struct, as doing so would be more likely to cause
reference leaks if the caller did not care about the
conn pointer when using bt_bap_ep_get_info. It can be
added later if that is requested.

Signed-off-by: Emil Gydesen <[email protected]>
Add entry for the new function bt_bap_ep_get_conn.

Signed-off-by: Emil Gydesen <[email protected]>
Add steps in the BAP tests to verify the correctness of
bt_bap_ep_get_conn.

Signed-off-by: Emil Gydesen <[email protected]>
@sonarqubecloud
Copy link

@Thalley
Copy link
Contributor Author

Thalley commented Nov 28, 2025

Will fix the unittest failiure once #96736 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Audio area: Bluetooth area: Tests Issues related to a particular existing or missing test Release Notes To be mentioned in the release notes

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants