Branch data Line data Source code
1 : : // SPDX-License-Identifier: GPL-3.0-or-later 2 : : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com> 3 : : 4 : : #pragma once 5 : : 6 : : #include <gio/gio.h> 7 : : 8 : : G_BEGIN_DECLS 9 : : 10 : : #define VALENT_TYPE_BATTERY (valent_battery_get_type()) 11 : : 12 [ + - + - : 121 : G_DECLARE_FINAL_TYPE (ValentBattery, valent_battery, VALENT, BATTERY, GObject) - + ] 13 : : 14 : : ValentBattery * valent_battery_get_default (void); 15 : : int valent_battery_current_charge (ValentBattery *battery); 16 : : gboolean valent_battery_is_charging (ValentBattery *battery); 17 : : gboolean valent_battery_is_present (ValentBattery *battery); 18 : : unsigned int valent_battery_threshold_event (ValentBattery *battery); 19 : : 20 : : G_END_DECLS 21 : :