* 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:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user