summaryrefslogtreecommitdiffstats
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-05 11:49:35 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-05 12:18:21 +0200
commitaf4e8e86ec91389a04df2b1b8621c0ad5c84917b (patch)
tree14fe71addd6fa8acaeadd9ec0954922551b12ab9 /src/login
parentadd support for KSM (diff)
downloadsystemd-af4e8e86ec91389a04df2b1b8621c0ad5c84917b.tar.xz
systemd-af4e8e86ec91389a04df2b1b8621c0ad5c84917b.zip
battery-util: split out code that checks AC power state into its own .c/.h pair
No code change, just some splitting out of the relevant code from udev-util.[ch]. This makes sense on its own, but is also prepartion to move the code that checks for low battery state into battery-util.[ch], too.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
index dd4b246893..df67e5509b 100644
--- a/src/login/logind-core.c
+++ b/src/login/logind-core.c
@@ -8,6 +8,7 @@
#include "sd-device.h"
#include "alloc-util.h"
+#include "battery-util.h"
#include "bus-error.h"
#include "bus-locator.h"
#include "bus-util.h"