]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/battery-util.h
hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
[thirdparty/systemd.git] / src / shared / battery-util.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "sd-device.h"
5
6 int on_ac_power(void);
7
8 int battery_is_discharging_and_low(void);
9
10 int battery_enumerator_new(sd_device_enumerator **ret);
11 int battery_read_capacity_percentage(sd_device *dev);