Mercurial > sdl-ios-xcode
comparison src/power/SDL_power.c @ 3204:f77f50add24f
Removed stub for Linux /sys/power processing.
Apparently /sys/power doesn't expose battery information at this time.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 30 Jun 2009 05:27:11 +0000 |
parents | 51750b7a966f |
children | a67a961e2171 |
comparison
equal
deleted
inserted
replaced
3203:790cbbda6429 | 3204:f77f50add24f |
---|---|
28 */ | 28 */ |
29 typedef SDL_bool | 29 typedef SDL_bool |
30 (*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds, | 30 (*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds, |
31 int *percent); | 31 int *percent); |
32 | 32 |
33 SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState *, int *, int *); | |
34 SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *); | 33 SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *); |
35 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *); | 34 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *); |
36 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *); | 35 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *); |
37 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *); | 36 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *); |
38 SDL_bool SDL_GetPowerInfo_OS2(SDL_PowerState *, int *, int *); | 37 SDL_bool SDL_GetPowerInfo_OS2(SDL_PowerState *, int *, int *); |
55 | 54 |
56 | 55 |
57 static SDL_GetPowerInfo_Impl implementations[] = { | 56 static SDL_GetPowerInfo_Impl implementations[] = { |
58 #ifndef SDL_POWER_DISABLED | 57 #ifndef SDL_POWER_DISABLED |
59 #ifdef SDL_POWER_LINUX /* in order of preference. More than could work. */ | 58 #ifdef SDL_POWER_LINUX /* in order of preference. More than could work. */ |
60 SDL_GetPowerInfo_Linux_sys_power, | |
61 SDL_GetPowerInfo_Linux_proc_acpi, | 59 SDL_GetPowerInfo_Linux_proc_acpi, |
62 SDL_GetPowerInfo_Linux_proc_apm, | 60 SDL_GetPowerInfo_Linux_proc_apm, |
63 #endif | 61 #endif |
64 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ | 62 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ |
65 SDL_GetPowerInfo_Windows, | 63 SDL_GetPowerInfo_Windows, |