summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-04-04 18:16:10 +0200
committerBastien Nocera <hadess@hadess.net>2017-04-06 14:18:10 +0200
commit4f9230900bdf2ff4fc22373a3a84f10146b9c1a8 (patch)
treed69f3e0c783577793c1862c7974801aa3298ea74 /src
parent6b147982817ad9180e594bcfdb0db94bbfcb4869 (diff)
lib: Add more members to UpDeviceLevel struct
Those levels will not be used to cover warning levels, but approximate battery levels that devices can use, exported by the kernel as POWER_SUPPLY_CAPACITY_LEVEL_* values. See linux/power_supply.h https://bugs.freedesktop.org/show_bug.cgi?id=100359
Diffstat (limited to 'src')
-rwxr-xr-xsrc/linux/integration-test5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linux/integration-test b/src/linux/integration-test
index 1769e26..84f2f87 100755
--- a/src/linux/integration-test
+++ b/src/linux/integration-test
@@ -63,7 +63,10 @@ UP_DISPLAY_OBJECT_PATH = '/org/freedesktop/UPower/devices/DisplayDevice'
UP_DEVICE_LEVEL_DISCHARGING,
UP_DEVICE_LEVEL_LOW,
UP_DEVICE_LEVEL_CRITICAL,
- UP_DEVICE_LEVEL_ACTION) = (0, 1, 2, 3, 4, 5)
+ UP_DEVICE_LEVEL_ACTION,
+ UP_DEVICE_LEVEL_NORMAL,
+ UP_DEVICE_LEVEL_HIGH,
+ UP_DEVICE_LEVEL_FULL) = (0, 1, 2, 3, 4, 5, 6, 7, 8)
(UP_DEVICE_KIND_UNKNOWN,
UP_DEVICE_KIND_LINE_POWER,