Removed stub for Linux /sys/power processing.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 30 Jun 2009 05:27:11 +0000
changeset 3204f77f50add24f
parent 3203 790cbbda6429
child 3205 f9a4aa1e1b34
Removed stub for Linux /sys/power processing.

Apparently /sys/power doesn't expose battery information at this time.
src/power/SDL_power.c
src/power/linux/SDL_syspower.c
     1.1 --- a/src/power/SDL_power.c	Tue Jun 30 03:50:30 2009 +0000
     1.2 +++ b/src/power/SDL_power.c	Tue Jun 30 05:27:11 2009 +0000
     1.3 @@ -30,7 +30,6 @@
     1.4      (*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds,
     1.5                                int *percent);
     1.6  
     1.7 -SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState *, int *, int *);
     1.8  SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *);
     1.9  SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *);
    1.10  SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *);
    1.11 @@ -57,7 +56,6 @@
    1.12  static SDL_GetPowerInfo_Impl implementations[] = {
    1.13  #ifndef SDL_POWER_DISABLED
    1.14  #ifdef SDL_POWER_LINUX          /* in order of preference. More than could work. */
    1.15 -    SDL_GetPowerInfo_Linux_sys_power,
    1.16      SDL_GetPowerInfo_Linux_proc_acpi,
    1.17      SDL_GetPowerInfo_Linux_proc_apm,
    1.18  #endif
     2.1 --- a/src/power/linux/SDL_syspower.c	Tue Jun 30 03:50:30 2009 +0000
     2.2 +++ b/src/power/linux/SDL_syspower.c	Tue Jun 30 05:27:11 2009 +0000
     2.3 @@ -34,14 +34,6 @@
     2.4  
     2.5  #include "SDL_power.h"
     2.6  
     2.7 -SDL_bool
     2.8 -SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState * state,
     2.9 -                                 int *seconds, int *percent)
    2.10 -{
    2.11 -    return SDL_FALSE;           /* !!! FIXME: write me. */
    2.12 -}
    2.13 -
    2.14 -
    2.15  static const char *proc_acpi_path = "/proc/acpi/battery";
    2.16  
    2.17  static int open_acpi_file(const char *node, const char *key)