mbpfan/src/global.h

38 lines
649 B
C
Raw Normal View History

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 {
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 {
FILE* file;
char* path; // TODO: unused
2012-10-24 11:13:25 +02:00
char* fan_output_path;
char* fan_manual_path;
int step_up;
int step_down;
int fan_id;
int old_speed;
int fan_max_speed;
int fan_min_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
#endif