mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
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.
12 lines
264 B
C
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);
|