Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 1 | #ifndef __SENSOR_THRESHOLDS_H__ |
| 2 | #define __SENSOR_THRESHOLDS_H__ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | typedef enum { NOT_SET,NORMAL,LOWER_CRITICAL,LOWER_WARNING,UPPER_WARNING,UPPER_CRITICAL } threshold_states; |
| 7 | |
| 8 | gboolean get_threshold_state(SensorIntegerThreshold*, |
| 9 | GDBusMethodInvocation*,gpointer); |
| 10 | |
| 11 | gboolean set_thresholds(SensorIntegerThreshold*, |
| 12 | GDBusMethodInvocation*,guint,guint,guint,guint,gpointer); |
| 13 | void check_thresholds(SensorIntegerThreshold*,guint); |
| 14 | |
| 15 | |
| 16 | #endif |