Mercurial > sdl-ios-xcode
comparison src/power/SDL_power.c @ 3174:c8b9c6d27476
Fixed some typos and added a couple of includes. All were need to get SDL_power to compile on Linux.
Sam, you might want to check to see that the spellings I picked are the spellings you wanted.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Mon, 08 Jun 2009 19:24:38 +0000 |
parents | 510e3f36c04a |
children | 51750b7a966f |
comparison
equal
deleted
inserted
replaced
3173:510e3f36c04a | 3174:c8b9c6d27476 |
---|---|
28 */ | 28 */ |
29 typedef SDL_bool | 29 typedef SDL_bool |
30 (*SDL_GetPowerInfo_Impl)(SDL_PowerState *state, int *seconds, int *percent); | 30 (*SDL_GetPowerInfo_Impl)(SDL_PowerState *state, int *seconds, int *percent); |
31 | 31 |
32 SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState*, int*, int*); | 32 SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState*, int*, int*); |
33 SDL_bool SDL_GetPowerInfo_Linux_proc_apci(SDL_PowerState*, int*, int*); | 33 SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState*, int*, int*); |
34 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState*, int*, int*); | 34 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState*, int*, int*); |
35 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState*, int*, int*); | 35 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState*, int*, int*); |
36 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState*, int*, int*); | 36 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState*, int*, int*); |
37 SDL_bool SDL_GetPowerInfo_OS2(SDL_PowerState*, int*, int*); | 37 SDL_bool SDL_GetPowerInfo_OS2(SDL_PowerState*, int*, int*); |
38 SDL_bool SDL_GetPowerInfo_BeOS(SDL_PowerState*, int*, int*); | 38 SDL_bool SDL_GetPowerInfo_BeOS(SDL_PowerState*, int*, int*); |
55 | 55 |
56 static SDL_GetPowerInfo_Impl implementations[] = { | 56 static SDL_GetPowerInfo_Impl implementations[] = { |
57 #ifndef SDL_POWER_DISABLED | 57 #ifndef SDL_POWER_DISABLED |
58 #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. */ |
59 SDL_GetPowerInfo_Linux_sys_power, | 59 SDL_GetPowerInfo_Linux_sys_power, |
60 SDL_GetPowerInfo_Linux_proc_apci, | 60 SDL_GetPowerInfo_Linux_proc_acpi, |
61 SDL_GetPowerInfo_Linux_proc_apm, | 61 SDL_GetPowerInfo_Linux_proc_apm, |
62 #endif | 62 #endif |
63 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ | 63 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ |
64 SDL_GetPowerInfo_Windows, | 64 SDL_GetPowerInfo_Windows, |
65 #endif | 65 #endif |