Skip to content
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: Introduce new CCP API #77120

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Aug 15, 2024

The CCP API for the Call Control Profile works on top of the
TBS API, and will eventually replace parts of the TBS API.

Signed-off-by: Emil Gydesen [email protected]

@Thalley Thalley force-pushed the ccp_register branch 3 times, most recently from 6aa67a6 to 63398a4 Compare August 21, 2024 09:31
@Thalley Thalley changed the title Ccp register Bluetooth: CCP: Introduce new CCP API Aug 21, 2024
@Thalley Thalley force-pushed the ccp_register branch 6 times, most recently from 4599b32 to fc5da98 Compare August 26, 2024 19:05
Comment on lines +66 to +71
int bt_ccp_server_register_bearer(const struct bt_tbs_register_param *param,
struct bt_ccp_server_bearer **bearer);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For reviewers: I consider the following naming options:

  1. bt_ccp_ccs (Bluetooth Call Control Profile Call Control Server, where Call Control Server is the actual name of the role in CCP)
  2. bt_ccp_call_control_server (more verbose version of the above; naming similar to e.g. bt_bap_unicast_server)
  3. bt_ccp_call_ctrl_srv (shorter version of 3, more similar to the VCP and MICP APIs (e.g. bt_vcp_vol_rend)
  4. bt_ccp_server (and in upcoming PRs, bt_ccp_client).

If you have any preferences or other suggestions, please let me know and we can just do a rename

@Thalley Thalley force-pushed the ccp_register branch 4 times, most recently from 87437d8 to 1e8dcd7 Compare September 9, 2024 09:45
@Thalley Thalley force-pushed the ccp_register branch 6 times, most recently from 87a92cf to 3c73258 Compare September 17, 2024 08:56
@Thalley Thalley force-pushed the ccp_register branch 9 times, most recently from 0ede37d to c3c5f3f Compare September 24, 2024 16:16
alloc_value is more correct as it does allocate a new
value, rather than just returning/getting a value.

Signed-off-by: Emil Gydesen <[email protected]>
Rather than throwing an assert, it will now do a better
check for already-allocated CCIDs and return an error instead.

Signed-off-by: Emil Gydesen <[email protected]>
Move the CCID header to the include directory
to make it public.

This also compiles the ccid.c file whenver CONFIG_BT_AUDIO
is enabled, rather than having an additional Kconfig for it,
since the API is now public and may be used by other than
our internal services.

Signed-off-by: Emil Gydesen <[email protected]>
Add unit tests of the CCID functions.
To support these new tests, the GATT mocks need to
support dynamic GATT DB so we can add and remove
a service that contains CCIDs.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the ccp_register branch 3 times, most recently from 6e4cbd3 to d7d0cb2 Compare October 2, 2024 08:14
The CCP API for the Call Control Profile works on top of the
TBS API, and will eventually replace parts of the TBS API.

Signed-off-by: Emil Gydesen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant