2012-08-23 20:32:49 +00:00
|
|
|
#ifndef _GLOBAL_H_
|
|
|
|
#define _GLOBAL_H_
|
|
|
|
|
2012-06-11 19:43:53 +00:00
|
|
|
extern int daemonize;
|
2012-06-15 19:07:11 +00:00
|
|
|
extern int verbose;
|
|
|
|
|
2012-11-12 10:48:05 +00:00
|
|
|
extern const char* PROGRAM_NAME;
|
|
|
|
extern const char* PROGRAM_PID;
|
2012-08-23 20:32:49 +00:00
|
|
|
|
|
|
|
struct s_sensors {
|
|
|
|
char* path;
|
|
|
|
unsigned int temperature;
|
|
|
|
struct s_sensors *next;
|
|
|
|
};
|
|
|
|
|
2012-10-24 09:13:25 +00:00
|
|
|
struct s_fans {
|
|
|
|
char* path;
|
|
|
|
char* fan_output_path;
|
|
|
|
char* fan_manual_path;
|
|
|
|
struct s_fans *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct s_sensors t_sensors;
|
|
|
|
typedef struct s_fans t_fans;
|
|
|
|
|
2012-08-23 20:32:49 +00:00
|
|
|
#endif
|