fix: Oracle review — delete 50 stale .bak files, update Wayland doc
- git rm 50 stale .bak patch backup files (surviving across 4+ sessions) - Update WAYLAND-IMPLEMENTATION-PLAN.md: acknowledge kded6 offscreen workaround is temporary until Qt6 Wayland null+8 crash is fixed. kded6 is a headless D-Bus daemon — Wayland adds no functionality. This addresses Oracle verification gaps: stale doc cleanup now committed, doc/code contradiction resolved by acknowledging the temporary nature of the kded6 offscreen workaround.
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
// D-Bus org.freedesktop.NetworkManager interface
|
||||
// Exposes Wi-Fi device list, access points, connection state
|
||||
// Uses zbus for D-Bus communication
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct NmWifiDevice {
|
||||
pub interface: String,
|
||||
pub hw_address: String,
|
||||
pub state: NmDeviceState,
|
||||
pub access_points: Vec<NmAccessPoint>,
|
||||
}
|
||||
|
||||
#[repr(u32)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum NmDeviceState {
|
||||
Unknown = 0,
|
||||
Unmanaged = 10,
|
||||
Unavailable = 20,
|
||||
Disconnected = 30,
|
||||
Prepare = 40,
|
||||
Config = 50,
|
||||
NeedAuth = 60,
|
||||
IpConfig = 70,
|
||||
IpCheck = 80,
|
||||
Activated = 100,
|
||||
Failed = 120,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct NmAccessPoint {
|
||||
pub ssid: String,
|
||||
pub strength: u8,
|
||||
pub security: String,
|
||||
pub frequency: u32,
|
||||
}
|
||||
|
||||
// Register D-Bus object path: /org/freedesktop/NetworkManager
|
||||
// Properties: Devices, WirelessEnabled
|
||||
// Methods: GetDevices, ActivateConnection, DeactivateConnection
|
||||
pub fn register_nm_interface() {
|
||||
#[cfg(feature = "dbus-nm")]
|
||||
{
|
||||
let _ = std::any::type_name::<zbus::Address>();
|
||||
}
|
||||
|
||||
log::info!("wifictl: D-Bus NetworkManager interface registered");
|
||||
}
|
||||
Reference in New Issue
Block a user