Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Oct 8, 2024

Add bt_ccp_client_get_bearers that will return the bearers of
a client so that the application can always retrieve them if they
do not store them from the discovery callback.

@Thalley Thalley changed the title Ccp client get bearers Bluetooth: CCP: Client: Add get_bearers Oct 8, 2024
@Thalley Thalley force-pushed the ccp_client_get_bearers branch 5 times, most recently from 929b03d to 39409ab Compare October 9, 2024 16:24
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from 39409ab to aa81896 Compare October 18, 2024 07:45
@Thalley Thalley force-pushed the ccp_client_get_bearers branch 2 times, most recently from a48a329 to 2e236b8 Compare November 12, 2024 10:56
@Thalley Thalley force-pushed the ccp_client_get_bearers branch 3 times, most recently from 717e065 to 0391afe Compare November 22, 2024 21:10
@Thalley Thalley self-assigned this Nov 26, 2024
@Thalley Thalley force-pushed the ccp_client_get_bearers branch 2 times, most recently from 9f0a58e to 63e3385 Compare December 4, 2024 19:15
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from 63e3385 to 4246ad5 Compare January 2, 2025 10:29
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from 4246ad5 to fa2a48a Compare January 23, 2025 10:40
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from fa2a48a to c504d30 Compare February 4, 2025 13:35
@Thalley Thalley marked this pull request as ready for review February 4, 2025 13:35
@zephyrbot zephyrbot requested review from pin-zephyr and sjanc February 4, 2025 13:36
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from c504d30 to c4e4169 Compare February 17, 2025 10:28
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from c4e4169 to 8863169 Compare March 9, 2025 21:35
larsgk
larsgk previously approved these changes Mar 13, 2025
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from 8863169 to b57934e Compare March 13, 2025 10:00
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from b57934e to feb85df Compare March 24, 2025 13:26
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from feb85df to 5afbb07 Compare April 7, 2025 08:48
@Thalley Thalley requested a review from Copilot April 7, 2025 08:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment on lines 197 to 198
* @param[out] bearers The bearers struct that will be populated with the bearers of @p inst.
* @retval -EINVAL @p inst or @p bearers is NULL
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation for the 'bearers' parameter incorrectly references '@p inst' instead of '@p client'. Update the comment to correctly refer to the client parameter.

Suggested change
* @param[out] bearers The bearers struct that will be populated with the bearers of @p inst.
* @retval -EINVAL @p inst or @p bearers is NULL
* @param[out] bearers The bearers struct that will be populated with the bearers of @p client.
* @retval -EINVAL @p client or @p bearers is NULL

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

* @param[in] client The client to get the bearers of.
* @param[out] bearers The bearers struct that will be populated with the bearers of @p client.
* @retval 0 Succsss
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the documentation: 'Succsss' should be corrected to 'Success'.

Suggested change
* @retval 0 Succsss
* @retval 0 Success

Copilot uses AI. Check for mistakes.
Add bt_ccp_client_get_bearers that will return the bearers of
a client so that the application can always retrieve them if they
do not store them from the discovery callback.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the ccp_client_get_bearers branch from 1d3e47b to 2771439 Compare April 7, 2025 09:40
@Thalley Thalley requested a review from Copilot April 7, 2025 09:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

tests/bluetooth/audio/ccp_call_control_client/src/main.c:214

  • Consider adding tests for negative cases to verify that bt_ccp_call_control_client_get_bearers returns -EINVAL when provided with NULL for either the client or bearers parameters.
static ZTEST_F(ccp_call_control_client_test_suite, test_ccp_call_control_client_get_bearers)

@kartben kartben merged commit a4f8744 into zephyrproject-rtos:main Apr 9, 2025
27 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Bluetooth LE Audio Apr 9, 2025
@Thalley Thalley deleted the ccp_client_get_bearers branch April 9, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants