ecd1bfa07a2aa52d99094ff55c0a4299fbb726d5
[monky] / src / linux.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef _LINUX_H
4 #define _LINUX_H
5
6 #include "common.h"
7
8 const char *get_disk_protect_queue(const char *);
9
10 struct i8k_struct {
11         char *version;
12         char *bios;
13         char *serial;
14         char *cpu_temp;
15         char *left_fan_status;
16         char *right_fan_status;
17         char *left_fan_rpm;
18         char *right_fan_rpm;
19         char *ac_status;
20         char *buttons_status;
21 };
22
23 struct i8k_struct i8k;
24
25 char *get_ioscheduler(char *);
26 int get_laptop_mode(void);
27
28 void update_gateway_info(void);
29 void free_gateway_info(void);
30 int gateway_exists(void);
31 void print_gateway_iface(char *, int);
32 void print_gateway_ip(char *, int);
33
34 enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
35 void get_powerbook_batt_info(char *, size_t, int);
36
37 void parse_i2c_sensor(struct text_object *, const char *);
38 void parse_hwmon_sensor(struct text_object *, const char *);
39 void parse_platform_sensor(struct text_object *, const char *);
40 void print_sysfs_sensor(struct text_object *, char *, int );
41 void free_sysfs_sensor(struct text_object *);
42
43 int get_entropy_avail(unsigned int *);
44 int get_entropy_poolsize(unsigned int *);
45
46 #endif /* _LINUX_H */