a82a28c135
Fixed dates in LICENSE file Version 1.3
29 lines
548 B
C
29 lines
548 B
C
#define ERROR_VALUE -999.0
|
|
|
|
typedef struct
|
|
{
|
|
gchar *label;
|
|
float *value;
|
|
float *min;
|
|
float *max;
|
|
const gchar *printf_format;
|
|
}
|
|
SensorInit;
|
|
|
|
typedef struct {
|
|
const gchar *drv;
|
|
gboolean (*func_init)();
|
|
GSList* (*func_get_sensors)();
|
|
void (*func_update)();
|
|
void (*func_clear_minmax)();
|
|
gboolean enabled;
|
|
GSList *sensors;
|
|
} SensorSource;
|
|
|
|
SensorInit* sensor_init_new(void);
|
|
void sensor_init_free(SensorInit *s);
|
|
gboolean check_zen();
|
|
gchar *cpu_model();
|
|
guint get_core_count();
|
|
gboolean display_coreid;
|