src/power/SDL_power.c
changeset 3174 c8b9c6d27476
parent 3173 510e3f36c04a
child 3186 51750b7a966f
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