From b8393051e430f8aa4e9d0533e22f5d76e492fac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 11 Jan 2023 13:52:14 +0800 Subject: [PATCH] Battery: add comments for future use (FreeBSD) --- src/detection/battery/battery_bsd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/battery/battery_bsd.c b/src/detection/battery/battery_bsd.c index 17ce47a2f..881291af1 100644 --- a/src/detection/battery/battery_bsd.c +++ b/src/detection/battery/battery_bsd.c @@ -8,6 +8,9 @@ const char* ffDetectBatteryImpl(FF_UNUSED_PARAM FFinstance* instance, FFlist* results) { + //https://www.freebsd.org/cgi/man.cgi?acpi_battery(4) + //https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin/-/blob/master/panel-plugin/libacpi.c + int acpifd = open("/dev/acpi", O_RDONLY); if(acpifd < 0) return "open(\"/dev/acpi\", O_RDONLY) failed";