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

Commit 119b5663 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "floss: Allow dead_code of the dummy structures used for DBus" into main am: e8ed6c95

parents 72d93459 e8ed6c95
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -588,6 +588,7 @@ pub struct BtLePcmConfigDBus {
    channels_count: u8,
}

#[allow(dead_code)]
struct IBluetoothCallbackDBus {}

impl RPCProxy for IBluetoothCallbackDBus {}
@@ -658,6 +659,7 @@ impl IBluetoothCallback for IBluetoothCallbackDBus {
    fn on_sdp_record_created(&mut self, record: BtSdpRecord, handle: i32) {}
}

#[allow(dead_code)]
struct IBluetoothConnectionCallbackDBus {}

impl RPCProxy for IBluetoothConnectionCallbackDBus {}
@@ -674,6 +676,7 @@ impl IBluetoothConnectionCallback for IBluetoothConnectionCallbackDBus {
    fn on_device_disconnected(&mut self, remote_device: BluetoothDevice) {}
}

#[allow(dead_code)]
struct IScannerCallbackDBus {}

impl RPCProxy for IScannerCallbackDBus {}
@@ -1203,6 +1206,7 @@ impl IBluetoothManager for BluetoothManagerDBus {
    }
}

#[allow(dead_code)]
struct IBluetoothManagerCallbackDBus {}

impl RPCProxy for IBluetoothManagerCallbackDBus {}
@@ -1400,6 +1404,7 @@ pub struct PolicyEffectDBus {
    pub affected: bool,
}

#[allow(dead_code)]
struct IBluetoothAdminPolicyCallbackDBus {}

impl RPCProxy for IBluetoothAdminPolicyCallbackDBus {}
@@ -1861,6 +1866,7 @@ impl IBluetoothGatt for BluetoothGattDBus {
    }
}

#[allow(dead_code)]
struct IBluetoothGattCallbackDBus {}

impl RPCProxy for IBluetoothGattCallbackDBus {}
@@ -2269,6 +2275,7 @@ impl IBluetoothSocketManager for BluetoothSocketManagerDBus {
    }
}

#[allow(dead_code)]
struct IBluetoothSocketManagerCallbacksDBus {}

impl RPCProxy for IBluetoothSocketManagerCallbacksDBus {}
@@ -2348,6 +2355,7 @@ impl ISuspend for SuspendDBus {
    }
}

#[allow(dead_code)]
struct ISuspendCallbackDBus {}

impl RPCProxy for ISuspendCallbackDBus {}
@@ -2475,6 +2483,7 @@ impl IBluetoothTelephony for BluetoothTelephonyDBus {
    }
}

#[allow(dead_code)]
struct IBluetoothTelephonyCallbackDBus {}

impl RPCProxy for IBluetoothTelephonyCallbackDBus {}
@@ -2570,6 +2579,7 @@ impl IBluetoothQA for BluetoothQADBus {
    }
}

#[allow(dead_code)]
struct IBluetoothQACallbackDBus {}

impl RPCProxy for IBluetoothQACallbackDBus {}
@@ -2897,6 +2907,7 @@ impl IBluetoothMedia for BluetoothMediaDBus {
    }
}

#[allow(dead_code)]
struct IBluetoothMediaCallbackDBus {}

impl RPCProxy for IBluetoothMediaCallbackDBus {}
@@ -3050,6 +3061,7 @@ pub struct BatteryDBus {
    variant: String,
}

#[allow(dead_code)]
struct IBatteryManagerCallbackDBus {}

impl RPCProxy for IBatteryManagerCallbackDBus {}
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ use crate::iface_bluetooth_experimental::IBluetoothExperimental;
use crate::iface_bluetooth_manager::BluetoothManagerMixin;

/// D-Bus projection of IBluetoothExperimental.
#[allow(dead_code)]
struct BluetoothExperimentalDBus {}

#[generate_dbus_exporter(
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ pub struct AdapterWithEnabledDbus {
}

/// D-Bus projection of IBluetoothManager.
#[allow(dead_code)]
struct BluetoothManagerDBus {}

#[generate_dbus_exporter(
@@ -84,6 +85,7 @@ impl IBluetoothManager for BluetoothManagerDBus {
}

/// D-Bus projection of IBluetoothManagerCallback.
#[allow(dead_code)]
struct BluetoothManagerCallbackDBus {}

#[dbus_proxy_obj(BluetoothManagerCallback, "org.chromium.bluetooth.ManagerCallback")]
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ pub struct BatteryDBus {
    variant: String,
}

#[allow(dead_code)]
struct IBatteryManagerCallbackDBus {}

#[dbus_proxy_obj(BatteryManagerCallback, "org.chromium.bluetooth.BatteryManagerCallback")]
@@ -32,6 +33,7 @@ impl IBatteryManagerCallback for IBatteryManagerCallbackDBus {
    }
}

#[allow(dead_code)]
struct IBatteryManagerDBus {}

#[generate_dbus_exporter(export_battery_manager_dbus_intf, "org.chromium.bluetooth.BatteryManager")]
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ use dbus_projection::prelude::*;

use crate::dbus_arg::DBusArg;

#[allow(dead_code)]
struct IBatteryProviderCallbackDBus {}

#[dbus_proxy_obj(BatteryProviderCallback, "org.chromium.bluetooth.BatteryProviderCallback")]
@@ -18,6 +19,7 @@ impl IBatteryProviderCallback for IBatteryProviderCallbackDBus {
    }
}

#[allow(dead_code)]
struct IBatteryProviderManagerDBus {}

#[generate_dbus_exporter(
Loading