1 --- apm.h.orig 2009-07-01 02:42:09.000000000 +0200
2 +++ apm.h 2009-07-01 02:42:36.000000000 +0200
5 +typedef struct apm_info
7 + const char driver_version[10];
8 + int apm_version_major;
9 + int apm_version_minor;
14 + int battery_percentage;
20 /* Symbolic constants for apm may be in system apm.h, or may not. */
21 #ifndef AC_LINE_STATUS_ON
22 --- wmbattery.c.orig 2009-07-01 02:45:22.000000000 +0200
23 +++ wmbattery.c 2009-07-01 02:49:29.000000000 +0200
25 error("Cannot read HAL information.");
28 - else if (! use_sonypi) {
29 - if (apm_read(&cur_info) != 0)
30 - error("Cannot read APM information.");
33 if (sonypi_read(&cur_info) != 0)
34 error("Cannot read sonypi information.");
36 int main(int argc, char *argv[]) {
37 make_window(parse_commandline(argc, argv), argc ,argv);
39 - /* Check for APM support (returns 0 on success). */
40 - if (apm_exists() == 0) {
46 /* Check for hal support. */