zenmonitor3/src/include/zenmonitor.h
Shun Terabayashi 3ada99c203 Refactroring headers
* Add include guards
* include glib.h in headers
2020-10-04 14:41:35 +09:00

38 lines
730 B
C

#ifndef __ZENMONITOR_ZENMONITOR_H__
#define __ZENMONITOR_ZENMONITOR_H__
#include <glib.h>
#define ERROR_VALUE -999.0
#define VERSION "1.4.2"
typedef struct
{
gchar *label;
gchar *hint;
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();
extern gboolean display_coreid;
#endif /* __ZENMONITOR_ZENMONITOR_H__ */