1 use bt_topshim::btif::RawAddress;
2 use btstack::battery_manager::BatterySet;
3 use btstack::battery_provider_manager::{IBatteryProviderCallback, IBatteryProviderManager};
4 use btstack::RPCProxy;
5 use dbus::strings::Path;
6 use dbus_macros::{dbus_method, dbus_proxy_obj, generate_dbus_exporter};
7 use dbus_projection::prelude::*;
8 
9 use crate::dbus_arg::DBusArg;
10 
11 struct IBatteryProviderCallbackDBus {}
12 
13 #[dbus_proxy_obj(BatteryProviderCallback, "org.chromium.bluetooth.BatteryProviderCallback")]
14 impl IBatteryProviderCallback for IBatteryProviderCallbackDBus {
15     #[dbus_method("RefreshBatteryInfo")]
refresh_battery_info(&mut self)16     fn refresh_battery_info(&mut self) {
17         dbus_generated!()
18     }
19 }
20 
21 struct IBatteryProviderManagerDBus {}
22 
23 #[generate_dbus_exporter(
24     export_battery_provider_manager_dbus_intf,
25     "org.chromium.bluetooth.BatteryProviderManager"
26 )]
27 impl IBatteryProviderManager for IBatteryProviderManagerDBus {
28     #[dbus_method("RegisterBatteryProvider")]
register_battery_provider( &mut self, battery_provider_callback: Box<dyn IBatteryProviderCallback + Send>, ) -> u3229     fn register_battery_provider(
30         &mut self,
31         battery_provider_callback: Box<dyn IBatteryProviderCallback + Send>,
32     ) -> u32 {
33         dbus_generated!()
34     }
35 
36     #[dbus_method("UnregisterBatteryProvider")]
unregister_battery_provider(&mut self, battery_provider_id: u32)37     fn unregister_battery_provider(&mut self, battery_provider_id: u32) {
38         dbus_generated!()
39     }
40 
41     #[dbus_method("SetBatteryInfo")]
set_battery_info(&mut self, battery_provider_id: u32, battery_set: BatterySet)42     fn set_battery_info(&mut self, battery_provider_id: u32, battery_set: BatterySet) {
43         dbus_generated!()
44     }
45 
46     #[dbus_method("RemoveBatteryInfo")]
remove_battery_info(&mut self, battery_provider_id: u32, address: RawAddress, uuid: String)47     fn remove_battery_info(&mut self, battery_provider_id: u32, address: RawAddress, uuid: String) {
48         dbus_generated!()
49     }
50 }
51