Files
systemd/src/shared/battery-util.h
Lennart Poettering 319c46483e 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.
2023-06-05 12:19:32 +02:00

12 lines
264 B
C

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "sd-device.h"
int on_ac_power(void);
int battery_is_discharging_and_low(void);
int battery_enumerator_new(sd_device_enumerator **ret);
int battery_read_capacity_percentage(sd_device *dev);