Battery info for Linux (2.6+). If you want it for a different OS, submit a patch. Special thanks to David Lee Lambert

This commit is contained in:
n-a-c-h
2005-10-08 22:48:53 +00:00
parent 4245a36406
commit 31ce75d42d
2 changed files with 189 additions and 19 deletions

View File

@@ -346,11 +346,6 @@ char *seconds_to_asc(size_t seconds)
return(buffer);
}
#ifdef __WIN32__
int CheckBattery();
int CheckBatteryTime();
int CheckBatteryPercent();
#endif
extern unsigned int MessageOn;
extern unsigned int MsgCount;
extern char CSStatus[70];
@@ -359,7 +354,11 @@ extern char CSStatus3[70];
void DisplayBatteryStatus()
{
#ifdef __WIN32__
#ifndef __MSDOS__
int CheckBattery();
int CheckBatteryTime();
int CheckBatteryPercent();
*CSStatus2 = 0;
*CSStatus3 = 0;