|
Defines |
#define | ACPI_BATTERY_DIR "/proc/acpi/battery" |
#define | ACPI_AC_DIR "/proc/acpi/ac_adapter" |
Functions |
int | getBatteriesInfo (BatteryGeneral *battery_info) |
| fills the given Battery struct with the current battery information for all found batteries
|
int | getBatteryInfo (const int no, BatteryGeneral *bg) |
| get Information for only one battery
|
int | numBatteries (void) |
| get number of present batteries
|
int | getBatteryDetailedInfo (const int no, BatteryDetailed *bd) |
| use this method to get amount of batteries in the system
|
int | getACAdapterStatus (void) |
| returns if the machine is on ac power or not
|
int | setBatteryAlarm (int percent) |
| sets the ACPI battery alarm for all batteries
|
Variables |
DBusError | dbus_error |
LibHalContext * | hal_ctx |