Debian Codegraph @

config.h

raw symbols SCIP
1 /*
2 * config.h - Fan control daemon for MacBook
3 *
4 * Copyright (C) 2010 Mikael Strom <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17 #ifndef CONFIG_H_
18 #define CONFIG_H_
19
20 extern float temp_avg_floor;
21 extern float temp_avg_ceiling;
22
23 extern float temp_TC0P_floor;
24 extern float temp_TC0P_ceiling;
25
26 extern float temp_TG0P_floor;
27 extern float temp_TG0P_ceiling;
28
29 extern float fan_min;
30 extern float fan_max;
31
32 extern int log_level;
33
34 void read_cfg(char* name);
35
36 #define MAX_EXCLUDE 20
37 extern int exclude[MAX_EXCLUDE]; // array of sensors to exclude
38
39 #define max(a,b) (a > b ? a : b)
40 #define min(a,b) (a < b ? a : b)
41
42 #endif /* CONFIG_H_ */