1 #[cxx::bridge(namespace = bluetooth::common::init_flags)] 2 mod ffi { 3 extern "Rust" { load(flags: Vec<String>)4 fn load(flags: Vec<String>); set_all_for_testing()5 fn set_all_for_testing(); 6 always_send_services_if_gatt_disc_done_is_enabled() -> bool7 fn always_send_services_if_gatt_disc_done_is_enabled() -> bool; asynchronously_start_l2cap_coc_is_enabled() -> bool8 fn asynchronously_start_l2cap_coc_is_enabled() -> bool; btaa_hci_is_enabled() -> bool9 fn btaa_hci_is_enabled() -> bool; bta_dm_clear_conn_id_on_client_close_is_enabled() -> bool10 fn bta_dm_clear_conn_id_on_client_close_is_enabled() -> bool; btm_dm_flush_discovery_queue_on_search_cancel_is_enabled() -> bool11 fn btm_dm_flush_discovery_queue_on_search_cancel_is_enabled() -> bool; delay_hidh_cleanup_until_hidh_ready_start_is_enabled() -> bool12 fn delay_hidh_cleanup_until_hidh_ready_start_is_enabled() -> bool; clear_hidd_interrupt_cid_on_disconnect_is_enabled() -> bool13 fn clear_hidd_interrupt_cid_on_disconnect_is_enabled() -> bool; finite_att_timeout_is_enabled() -> bool14 fn finite_att_timeout_is_enabled() -> bool; gatt_robust_caching_client_is_enabled() -> bool15 fn gatt_robust_caching_client_is_enabled() -> bool; gatt_robust_caching_server_is_enabled() -> bool16 fn gatt_robust_caching_server_is_enabled() -> bool; gd_core_is_enabled() -> bool17 fn gd_core_is_enabled() -> bool; gd_l2cap_is_enabled() -> bool18 fn gd_l2cap_is_enabled() -> bool; gd_link_policy_is_enabled() -> bool19 fn gd_link_policy_is_enabled() -> bool; gd_rust_is_enabled() -> bool20 fn gd_rust_is_enabled() -> bool; gd_security_is_enabled() -> bool21 fn gd_security_is_enabled() -> bool; get_hci_adapter() -> i3222 fn get_hci_adapter() -> i32; irk_rotation_is_enabled() -> bool23 fn irk_rotation_is_enabled() -> bool; is_debug_logging_enabled_for_tag(tag: &str) -> bool24 fn is_debug_logging_enabled_for_tag(tag: &str) -> bool; leaudio_targeted_announcement_reconnection_mode_is_enabled() -> bool25 fn leaudio_targeted_announcement_reconnection_mode_is_enabled() -> bool; logging_debug_enabled_for_all_is_enabled() -> bool26 fn logging_debug_enabled_for_all_is_enabled() -> bool; pass_phy_update_callback_is_enabled() -> bool27 fn pass_phy_update_callback_is_enabled() -> bool; queue_l2cap_coc_while_encrypting_is_enabled() -> bool28 fn queue_l2cap_coc_while_encrypting_is_enabled() -> bool; sdp_serialization_is_enabled() -> bool29 fn sdp_serialization_is_enabled() -> bool; sdp_skip_rnr_if_known_is_enabled() -> bool30 fn sdp_skip_rnr_if_known_is_enabled() -> bool; trigger_advertising_callbacks_on_first_resume_after_pause_is_enabled() -> bool31 fn trigger_advertising_callbacks_on_first_resume_after_pause_is_enabled() -> bool; 32 } 33 } 34 35 use bt_common::init_flags::*; 36