blob: a1caa8dbddfbccb1edf647065381b13efdae77fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#define ERROR_VALUE -999.0
typedef struct
{
gchar *label;
float *value;
const gchar *printf_format;
}
SensorInit;
typedef struct {
const gchar *drv;
gboolean (*func_init)();
GSList* (*func_get_sensors)();
void (*func_update)();
gboolean enabled;
GSList *sensors;
} SensorSource;
SensorInit* sensor_init_new(void);
void sensor_init_free(SensorInit *s);
gboolean check_zen();
gchar *cpu_model();
|