/*
* rd_sensors.h: Include file used to read sensors statistics
- * (C) 1999-2016 by Sebastien Godard (sysstat <at> orange.fr)
+ * (C) 1999-2020 by Sebastien Godard (sysstat <at> orange.fr)
*/
#ifndef _RD_SENSORS_H
#define _RD_SENSORS_H
-#include "common.h"
-
/*
***************************************************************************
* Definitions of structures for sensors statistics
};
#define STATS_PWR_FAN_SIZE (sizeof(struct stats_pwr_fan))
+#define STATS_PWR_FAN_ULL 2
+#define STATS_PWR_FAN_UL 0
+#define STATS_PWR_FAN_U 0
/*
* Structure for device temperature statistics.
};
#define STATS_PWR_TEMP_SIZE (sizeof(struct stats_pwr_temp))
+#define STATS_PWR_TEMP_ULL 3
+#define STATS_PWR_TEMP_UL 0
+#define STATS_PWR_TEMP_U 0
/*
* Structure for voltage inputs statistics.
};
#define STATS_PWR_IN_SIZE (sizeof(struct stats_pwr_in))
+#define STATS_PWR_IN_ULL 3
+#define STATS_PWR_IN_UL 0
+#define STATS_PWR_IN_U 0
/*
***************************************************************************
***************************************************************************
*/
-void read_fan
- (struct stats_pwr_fan *, int);
-void read_temp
- (struct stats_pwr_temp *, int);
-void read_in
- (struct stats_pwr_in *, int);
+__nr_t read_fan
+ (struct stats_pwr_fan *, __nr_t);
+__nr_t read_temp
+ (struct stats_pwr_temp *, __nr_t);
+__nr_t read_in
+ (struct stats_pwr_in *, __nr_t);
/*
***************************************************************************
***************************************************************************
*/
-int get_fan_nr
+__nr_t get_fan_nr
(void);
-int get_temp_nr
+__nr_t get_temp_nr
(void);
-int get_in_nr
+__nr_t get_in_nr
(void);
#endif /* _RD_SENSORS_H */