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> |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 5 | #include "interfaces/openbmc_intf.h" |
Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 6 | |
| 7 | typedef enum { NOT_SET,NORMAL,LOWER_CRITICAL,LOWER_WARNING,UPPER_WARNING,UPPER_CRITICAL } threshold_states; |
| 8 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 9 | gboolean get_threshold_state(SensorThreshold*, |
Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 10 | GDBusMethodInvocation*,gpointer); |
| 11 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 12 | void check_thresholds(SensorThreshold*,GVariant*); |
Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 13 | |
| 14 | |
| 15 | #endif |