-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bluetooth: CCP: Client: Add get_bearers #79553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: CCP: Client: Add get_bearers #79553
Conversation
929b03d to
39409ab
Compare
39409ab to
aa81896
Compare
a48a329 to
2e236b8
Compare
717e065 to
0391afe
Compare
9f0a58e to
63e3385
Compare
63e3385 to
4246ad5
Compare
4246ad5 to
fa2a48a
Compare
fa2a48a to
c504d30
Compare
c504d30 to
c4e4169
Compare
c4e4169 to
8863169
Compare
8863169 to
b57934e
Compare
b57934e to
feb85df
Compare
feb85df to
5afbb07
Compare
There was a problem hiding this 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.
include/zephyr/bluetooth/audio/ccp.h
Outdated
| * @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 |
Copilot
AI
Apr 7, 2025
There was a problem hiding this comment.
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.
| * @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 |
5afbb07 to
1d3e47b
Compare
There was a problem hiding this 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.
include/zephyr/bluetooth/audio/ccp.h
Outdated
| * @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 |
Copilot
AI
Apr 7, 2025
There was a problem hiding this comment.
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'.
| * @retval 0 Succsss | |
| * @retval 0 Success |
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]>
1d3e47b to
2771439
Compare
There was a problem hiding this 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)
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.