Helper functions to manage how a unicast client (gateway side) stores the unicast server(s) (headset side) it is connected to.
More...
|
| int | srv_store_foreach_server (srv_store_foreach_func_t func, void *user_data) |
| | Iterate through all stored servers and call the given function for each.
|
| |
| bool | srv_store_preset_validated (struct bt_audio_codec_cfg const *const new, struct bt_audio_codec_cfg const *const existing, uint8_t pref_sample_rate_value) |
| | Validate the codec configuration preset.
|
| |
| int | srv_store_pres_dly_find (struct bt_bap_stream *stream, uint32_t *computed_pres_dly_us, uint32_t *existing_pres_dly_us, struct bt_bap_qos_cfg_pref const *server_qos_pref, bool *group_reconfig_needed, struct bt_cap_unicast_group *unicast_group) |
| | Search for a common presentation delay across all server Audio Stream Endpoints (ASEs) in a given unicast_group for the given direction.
|
| |
| int | srv_store_location_set (struct bt_conn const *const conn, enum bt_audio_dir dir, enum bt_audio_location loc) |
| | Set the valid locations of a unicast server.
|
| |
| int | srv_store_valid_codec_cap_check (struct bt_conn const *const conn, enum bt_audio_dir dir, uint32_t *valid_codec_caps, struct client_supp_configs const **const client_supp_cfgs, uint8_t num_client_supp_cfgs) |
| | Check which codec capabilities are valid.
|
| |
| int | srv_store_from_stream_get (struct bt_bap_stream const *const stream, struct server_store **server) |
| | Get a server based on stream pointer.
|
| |
| int | srv_store_all_ep_state_count (enum bt_bap_ep_state state, enum bt_audio_dir dir) |
| | Get the number of endpoints in a given state across all stored servers.
|
| |
| int | srv_store_avail_context_set (struct bt_conn *conn, enum bt_audio_context snk_ctx, enum bt_audio_context src_ctx) |
| | Store the available audio context for a server based on conn.
|
| |
| int | srv_store_codec_cap_set (struct bt_conn const *const conn, enum bt_audio_dir dir, struct bt_audio_codec_cap const *const codec) |
| | Store the codec capabilities for a given server based on conn.
|
| |
| int | srv_store_from_addr_get (bt_addr_le_t const *const addr, struct server_store **server) |
| | Get a server from the address.
|
| |
| bool | srv_store_server_exists (bt_addr_le_t const *const addr) |
| | Check if there is a server with the given address in the server store.
|
| |
| int | srv_store_from_conn_get (struct bt_conn const *const conn, struct server_store **server) |
| | Get a server from the conn pointer.
|
| |
| int | srv_store_num_get (void) |
| | Get the number of stored servers.
|
| |
| int | srv_store_add_by_conn (struct bt_conn *conn) |
| | Add a server to the storage based on conn.
|
| |
| int | srv_store_add_by_addr (const bt_addr_le_t *addr) |
| | Add a server to the storage based on address.
|
| |
| int | srv_store_conn_update (struct bt_conn *conn, bt_addr_le_t const *const addr) |
| | Update the conn pointer of an existing server, based on address.
|
| |
| int | srv_store_clear_by_conn (struct bt_conn const *const conn) |
| | Clear the contents of a server based on conn pointer.
|
| |
| int | srv_store_remove_by_conn (struct bt_conn const *const conn) |
| | Remove a server by conn pointer.
|
| |
| int | srv_store_remove_by_addr (bt_addr_le_t const *const addr) |
| | Remove a single stored server based on address.
|
| |
| int | srv_store_remove_all (bool force) |
| | Remove all servers.
|
| |
| void | srv_store_unlock (void) |
| | Give the server store semaphore to unlock server store.
|
| |
| int | srv_store_init (void) |
| | Initialize the server store and clear all contents.
|
| |
Helper functions to manage how a unicast client (gateway side) stores the unicast server(s) (headset side) it is connected to.