Searched refs:fBatteryState (Results 1 - 1 of 1) sorted by relevance

/vbox/src/VBox/Devices/PC/
H A DDrvACPI.cpp463 int fBatteryState = 0; local
464 size_t cbParameter = sizeof(fBatteryState);
466 rc = sysctlbyname("hw.acpi.battery.state", &fBatteryState, &cbParameter, NULL, 0);
469 if ((fBatteryState & ACPI_BATT_STAT_NOT_PRESENT) == ACPI_BATT_STAT_NOT_PRESENT)
475 if (fBatteryState & ACPI_BATT_STAT_DISCHARG)
477 else if (fBatteryState & ACPI_BATT_STAT_CHARGING)
482 if (fBatteryState & ACPI_BATT_STAT_CRITICAL)

Completed in 44 milliseconds