summaryrefslogtreecommitdiff
path: root/yajl-fallback/yajl
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2015-10-08 13:15:38 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2015-10-08 13:15:38 -0700
commit5e33d9fe748efc8df49c123fe01d486b04c20f57 (patch)
tree7c2522eb3ac8a690a47b8b97fdedcc26b66ce70a /yajl-fallback/yajl
parent974f95702efbf1ae15882777d191c7fde99bfb9b (diff)
Properly detect the battery charging status under FreeBSD.
The hw.acpi.battery.state sysctl returns a bitmask of flags as defined in <dev/acpica/acpiio.h>. Use constants from this header to examine the state and check for the charging flag to determine if the battery is charging.
Diffstat (limited to 'yajl-fallback/yajl')
0 files changed, 0 insertions, 0 deletions