blob: b02c8ca2f614430b10c2341896b1d657b30292af [file] [log] [blame]
Norman Jamese7594922015-08-27 14:25:24 -05001#ifndef __SENSOR_THRESHOLDS_H__
2#define __SENSOR_THRESHOLDS_H__
3
4#include <stdint.h>
Norman James362a80f2015-09-14 14:04:39 -05005#include "interfaces/openbmc_intf.h"
Norman Jamese7594922015-08-27 14:25:24 -05006
7typedef enum { NOT_SET,NORMAL,LOWER_CRITICAL,LOWER_WARNING,UPPER_WARNING,UPPER_CRITICAL } threshold_states;
8
Norman James5d78b4d2015-09-05 13:34:34 -05009gboolean get_threshold_state(SensorThreshold*,
Norman Jamese7594922015-08-27 14:25:24 -050010 GDBusMethodInvocation*,gpointer);
11
Norman James5d78b4d2015-09-05 13:34:34 -050012void check_thresholds(SensorThreshold*,GVariant*);
Norman Jamese7594922015-08-27 14:25:24 -050013
14
15#endif