here comes the big header include rewrite
[monky] / src / linux.h
1 #ifndef _LINUX_H
2 #define _LINUX_H
3
4 #include "common.h"
5
6 void get_ibm_acpi_fan(char *buf, size_t client_buffer_size);
7 void get_ibm_acpi_temps(void);
8 void get_ibm_acpi_volume(char *buf, size_t client_buffer_size);
9 void get_ibm_acpi_brightness(char *buf, size_t client_buffer_size);
10 const char *get_disk_protect_queue(const char *);
11
12 struct i8k_struct {
13         char *version;
14         char *bios;
15         char *serial;
16         char *cpu_temp;
17         char *left_fan_status;
18         char *right_fan_status;
19         char *left_fan_rpm;
20         char *right_fan_rpm;
21         char *ac_status;
22         char *buttons_status;
23 };
24
25 struct i8k_struct i8k;
26
27 struct ibm_acpi_struct {
28         int temps[8];
29 };
30
31 struct ibm_acpi_struct ibm_acpi;
32
33 int interface_up(const char *dev);
34 char *get_ioscheduler(char *);
35 int get_laptop_mode(void);
36 void update_gateway_info(void);
37
38 enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
39 void get_powerbook_batt_info(char *, size_t, int);
40
41 #endif /* _LINUX_H */