Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc871fb9 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

legacy: Decouple gd_advertisting and gd_scanning flags am: 60db7ff3

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1914579

Change-Id: Ie375dd1fb005f3310580cf5a6761bf6a132d526d
parents 84a18b0b 60db7ff3
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -3,6 +3,13 @@ use paste::paste;
use std::sync::Mutex;

/// Deprecated immutable flag
pub fn gd_advertising_is_enabled() -> bool {
    true
}
/// Deprecated immutable flag
pub fn gd_scanning_is_enabled() -> bool {
    true
}

macro_rules! init_flags {
    (flags: { $($flag:ident),* }, dependencies: { $($parent:ident => $child:ident),* }) => {
@@ -77,8 +84,6 @@ macro_rules! init_flags {
init_flags!(
    flags: {
        gd_core,
        gd_advertising,
        gd_scanning,
        gd_security,
        gd_l2cap,
        gatt_robust_caching,
@@ -87,9 +92,7 @@ init_flags!(
        gd_link_policy
    },
    dependencies: {
        gd_core => gd_security,
        gd_l2cap => gd_scanning,
        gd_scanning => gd_advertising
        gd_core => gd_security
    }
);