summaryrefslogtreecommitdiff
path: root/system/gd/rust/shim/src/init_flags.rs
blob: fd3015cc34172b07f9ccf7c67646a44b79f1d33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cxx::bridge(namespace = bluetooth::common::init_flags)]
mod ffi {
    extern "Rust" {
        fn load(flags: Vec<String>);
        fn set_all_for_testing();

        fn gd_core_is_enabled() -> bool;
        fn gd_security_is_enabled() -> bool;
        fn gd_l2cap_is_enabled() -> bool;
        fn gatt_robust_caching_is_enabled() -> bool;
        fn btaa_hci_is_enabled() -> bool;
        fn gd_rust_is_enabled() -> bool;
        fn gd_link_policy_is_enabled() -> bool;
    }
}

use bt_common::init_flags::*;