svartalf / rust-battery

Rust crate providing cross-platform information about the notebook batteries.
https://crates.io/crates/battery
Apache License 2.0
354 stars 40 forks source link

Support multiple batteries in FreeBSD / DragonFlyBSD #17

Closed svartalf closed 5 years ago

svartalf commented 5 years ago

Right now implementation for FreeBSD / DragonFlyBSD can handle only one installed battery, this behavior should be fixed.

acpi_battery_get_battinfo function from the freebsd sources can be used as reference.