diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-05 11:56:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-05 12:19:32 +0200 |
commit | 319c46483e3eb1a3c33a3ca97b90ba13c3987da1 (patch) | |
tree | 14ac66b6fe0f3d79b803c1cbdd6a280bad55f75c /src/sleep | |
parent | battery-util: split out code that checks AC power state into its own .c/.h pair (diff) | |
download | systemd-319c46483e3eb1a3c33a3ca97b90ba13c3987da1.tar.xz systemd-319c46483e3eb1a3c33a3ca97b90ba13c3987da1.zip |
battery-util: move battery_is_discharging_and_low() to battery-util.[ch]
This moves a first batch of functions from sleep-config.[ch] over to
battery-util.[ch].
In the long run we should probably move even more stuff over, i.e.
anything that deals with the battery sysfs driver interface.
No code change.
Diffstat (limited to 'src/sleep')
-rw-r--r-- | src/sleep/sleep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index a9445c1a61..0dc3ad3558 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -17,6 +17,7 @@ #include "sd-bus.h" #include "sd-messages.h" +#include "battery-util.h" #include "btrfs-util.h" #include "build.h" #include "bus-error.h" |