* Implemented APM generic syscall API to query the current power status.

* PowerStatus is now using this API when compiled for Haiku.
* Note, I'm not sure why yet, but running PowerStatus in the background
  crashes at least my laptop after some time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-05-16 15:22:23 +00:00
parent 8536d82fb6
commit 8ca5764554
4 changed files with 91 additions and 5 deletions
+11
View File
@@ -47,6 +47,17 @@ typedef struct apm_info {
} apm_info;
// temporary generic syscall interface
#define APM_SYSCALLS "apm"
#define APM_GET_BATTERY_INFO 1
struct battery_info {
bool online;
int32 percent;
time_t time_left;
};
#ifndef _BOOT_MODE
#ifdef __cplusplus
extern "C" {