power: Add Linux org.freedesktop.UPower D-Bus implementation.

Fixes Bugzilla #3485.

(I think.)
This commit is contained in:
Ryan C. Gordon
2017-05-28 07:14:11 -04:00
parent b3f94acbf9
commit 643f1cb73d
5 changed files with 118 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ SDL_GetPowerInfo_Hardwired(SDL_PowerState * state, int *seconds, int *percent)
static SDL_GetPowerInfo_Impl implementations[] = {
#ifndef SDL_POWER_DISABLED
#ifdef SDL_POWER_LINUX /* in order of preference. More than could work. */
SDL_GetPowerInfo_Linux_org_freedesktop_upower,
SDL_GetPowerInfo_Linux_sys_class_power_supply,
SDL_GetPowerInfo_Linux_proc_acpi,
SDL_GetPowerInfo_Linux_proc_apm,