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,33 +0,0 @@
|
||||
mod registers;
|
||||
|
||||
use std::env;
|
||||
use std::process;
|
||||
use log::{info, error, LevelFilter};
|
||||
|
||||
struct StderrLogger;
|
||||
impl log::Log for StderrLogger {
|
||||
fn enabled(&self, md: &log::Metadata) -> bool { md.level() <= LevelFilter::Info }
|
||||
fn log(&self, r: &log::Record) { eprintln!("[{}] ehcid: {}", r.level(), r.args()); }
|
||||
fn flush(&self) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
log::set_logger(&StderrLogger).ok();
|
||||
log::set_max_level(LevelFilter::Info);
|
||||
|
||||
let channel_fd: usize = match env::var("PCID_CLIENT_CHANNEL") {
|
||||
Ok(s) => match s.parse() { Ok(fd) => fd, Err(_) => { error!("invalid PCID_CLIENT_CHANNEL"); process::exit(1); } },
|
||||
Err(_) => { error!("PCID_CLIENT_CHANNEL not set"); process::exit(1); }
|
||||
};
|
||||
|
||||
let device_path = env::var("PCID_DEVICE_PATH").unwrap_or_default();
|
||||
info!("EHCI USB 2.0 controller at {} (PCI fd: {})", device_path, channel_fd);
|
||||
|
||||
// Enable bus mastering and MMIO via the channel
|
||||
let enable_cmd: [u8; 4] = [0x07, 0x00, 0x00, 0x00]; // IO + MEM + BUS_MASTER
|
||||
if let Err(e) = syscall::write(channel_fd, &enable_cmd) {
|
||||
error!("failed to enable device: {}", e);
|
||||
}
|
||||
|
||||
info!("ehcid: initialized — ready for enumeration");
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
mod registers;
|
||||
|
||||
use std::env;
|
||||
use std::process;
|
||||
use log::{info, error, LevelFilter};
|
||||
|
||||
struct StderrLogger;
|
||||
impl log::Log for StderrLogger {
|
||||
fn enabled(&self, md: &log::Metadata) -> bool { md.level() <= LevelFilter::Info }
|
||||
fn log(&self, r: &log::Record) { eprintln!("[{}] ohcid: {}", r.level(), r.args()); }
|
||||
fn flush(&self) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
log::set_logger(&StderrLogger).ok();
|
||||
log::set_max_level(LevelFilter::Info);
|
||||
let channel_fd: usize = match env::var("PCID_CLIENT_CHANNEL") {
|
||||
Ok(s) => match s.parse() { Ok(fd) => fd, Err(_) => { error!("invalid PCID_CLIENT_CHANNEL"); process::exit(1); } },
|
||||
Err(_) => { error!("PCID_CLIENT_CHANNEL not set"); process::exit(1); }
|
||||
};
|
||||
info!("OHCI USB 1.1 controller (PCI fd: {})", channel_fd);
|
||||
info!("ohcid: ready");
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
mod registers;
|
||||
|
||||
use std::env;
|
||||
use std::process;
|
||||
use log::{info, error, LevelFilter};
|
||||
|
||||
struct StderrLogger;
|
||||
impl log::Log for StderrLogger {
|
||||
fn enabled(&self, md: &log::Metadata) -> bool { md.level() <= LevelFilter::Info }
|
||||
fn log(&self, r: &log::Record) { eprintln!("[{}] uhcid: {}", r.level(), r.args()); }
|
||||
fn flush(&self) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
log::set_logger(&StderrLogger).ok();
|
||||
log::set_max_level(LevelFilter::Info);
|
||||
let channel_fd: usize = match env::var("PCID_CLIENT_CHANNEL") {
|
||||
Ok(s) => match s.parse() { Ok(fd) => fd, Err(_) => { error!("invalid PCID_CLIENT_CHANNEL"); process::exit(1); } },
|
||||
Err(_) => { error!("PCID_CLIENT_CHANNEL not set"); process::exit(1); }
|
||||
};
|
||||
info!("UHCI USB 1.1 controller (PCI fd: {})", channel_fd);
|
||||
info!("uhcid: ready");
|
||||
}
|
||||
@@ -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