5 #define eprint(level, fmt, arg...) \
10 fprintf(stderr, __FUNCTION__": " fmt, ##arg); \
11 fprintf(stderr, "\n"); \
15 #define eprint(level, fmt, arg...) \
30 POWER
, /* on AC, Battery charged */
31 CHARGING
, /* on AC, Charging */
32 HIGH
, /* on Battery, HIGH */
33 LOW
, /* on Battery, LOW */
34 CRIT
/* on Battery, CRIT */
38 State power
; /* power state: Battery levels or AC */
39 int percentage
; /* battery percentage (-1 if no battery) */
40 int rtime
; /* remaining time */
41 int timer
; /* how long been on battery? */
42 int crit_level
; /* anything below this is critical low */
45 /* detect plugin events */
46 void process_plugin_timer(void);
47 /* check if apm/acpi is enabled, etc */
49 /* fill APMInfo with data */
50 void acquire_info(void);
52 #endif /* _WMACPI_H_ */