blob: 9058384f9715ece5002ad5580d574d4e9a9920ce [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 James90baede2015-09-02 20:32:49 -05005#include "interfaces/sensor.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