Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed stub for Linux /sys/power processing.
Browse files Browse the repository at this point in the history
Apparently /sys/power doesn't expose battery information at this time.
  • Loading branch information
icculus committed Jun 30, 2009
1 parent a67b7b9 commit 3684f69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/power/SDL_power.c
Expand Up @@ -30,7 +30,6 @@ typedef SDL_bool
(*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds,
int *percent);

SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState *, int *, int *);
SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *);
SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *);
SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *);
Expand All @@ -57,7 +56,6 @@ 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_sys_power,
SDL_GetPowerInfo_Linux_proc_acpi,
SDL_GetPowerInfo_Linux_proc_apm,
#endif
Expand Down
8 changes: 0 additions & 8 deletions src/power/linux/SDL_syspower.c
Expand Up @@ -34,14 +34,6 @@

#include "SDL_power.h"

SDL_bool
SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState * state,
int *seconds, int *percent)
{
return SDL_FALSE; /* !!! FIXME: write me. */
}


static const char *proc_acpi_path = "/proc/acpi/battery";

static int open_acpi_file(const char *node, const char *key)
Expand Down

0 comments on commit 3684f69

Please sign in to comment.