Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_ccp_call_control_client_cb Struct Reference

Struct to hold the Telephone Bearer Service client callbacks. More...

#include <zephyr/bluetooth/audio/ccp.h>

Data Fields

void(* discover )(struct bt_ccp_call_control_client *client, int err, struct bt_ccp_call_control_client_bearers *bearers, void *user_data)
 Callback function for bt_ccp_call_control_client_discover().
void(* bearer_provider_name )(struct bt_ccp_call_control_client_bearer *bearer, int err, const char *name, void *user_data)
 Callback function for bt_ccp_call_control_client_read_bearer_provider_name().
void * user_data
 User data that will be supplied to all callbacks.

Detailed Description

Struct to hold the Telephone Bearer Service client callbacks.

These can be registered for usage with bt_tbs_client_register_cb().

Field Documentation

◆ bearer_provider_name

void(* bt_ccp_call_control_client_cb::bearer_provider_name) (struct bt_ccp_call_control_client_bearer *bearer, int err, const char *name, void *user_data)

Callback function for bt_ccp_call_control_client_read_bearer_provider_name().

This callback is called once the read bearer provider name procedure is completed.

Parameters
bearerCall Control Client bearer instance pointer.
errError value. 0 on success, GATT error on positive value or errno on negative value.
nameThe bearer provider name. NULL if err is not 0. Value must be copied if used after return.
user_dataUser data stored in the callback struct. Will always be NULL if CONFIG_BT_CCP_CALL_CONTROL_CLIENT_CB_USER_DATA is not enabled.

◆ discover

void(* bt_ccp_call_control_client_cb::discover) (struct bt_ccp_call_control_client *client, int err, struct bt_ccp_call_control_client_bearers *bearers, void *user_data)

Callback function for bt_ccp_call_control_client_discover().

This callback is called once the discovery procedure is completed.

Parameters
clientCall Control Client pointer.
errError value. 0 on success, GATT error on positive value or errno on negative value.
bearersThe bearers found. Value must be copied if used after return.
user_dataUser data stored in the callback struct. Will always be NULL if CONFIG_BT_CCP_CALL_CONTROL_CLIENT_CB_USER_DATA is not enabled.

◆ user_data

void* bt_ccp_call_control_client_cb::user_data

User data that will be supplied to all callbacks.


The documentation for this struct was generated from the following file:
  • zephyr/bluetooth/audio/ccp.h