2012-08-23 22:32:49 +02:00
|
|
|
#ifndef _GLOBAL_H_
|
|
|
|
#define _GLOBAL_H_
|
|
|
|
|
2012-06-11 21:43:53 +02:00
|
|
|
extern int daemonize;
|
2012-06-15 21:07:11 +02:00
|
|
|
extern int verbose;
|
|
|
|
|
2012-11-12 11:48:05 +01:00
|
|
|
extern const char* PROGRAM_NAME;
|
|
|
|
extern const char* PROGRAM_PID;
|
2012-08-23 22:32:49 +02:00
|
|
|
|
|
|
|
struct s_sensors {
|
2017-07-13 15:28:23 -07:00
|
|
|
FILE* file;
|
2012-08-23 22:32:49 +02:00
|
|
|
char* path;
|
|
|
|
unsigned int temperature;
|
|
|
|
struct s_sensors *next;
|
|
|
|
};
|
|
|
|
|
2012-10-24 11:13:25 +02:00
|
|
|
struct s_fans {
|
2017-07-13 15:28:23 -07:00
|
|
|
FILE* file;
|
|
|
|
char* path; // TODO: unused
|
2012-10-24 11:13:25 +02:00
|
|
|
char* fan_output_path;
|
|
|
|
char* fan_manual_path;
|
2017-07-14 02:30:59 -07:00
|
|
|
int old_speed;
|
2012-10-24 11:13:25 +02:00
|
|
|
struct s_fans *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct s_sensors t_sensors;
|
|
|
|
typedef struct s_fans t_fans;
|
|
|
|
|
2014-07-21 23:43:39 +02:00
|
|
|
extern t_sensors* sensors;
|
|
|
|
extern t_fans* fans;
|
2012-11-18 22:16:49 +01:00
|
|
|
|
2012-08-23 22:32:49 +02:00
|
|
|
#endif
|