blob: e95526642197c68d50c92fd96e8aa2a00733cbc7 [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
9gboolean get_threshold_state(SensorIntegerThreshold*,
10 GDBusMethodInvocation*,gpointer);
11
12gboolean set_thresholds(SensorIntegerThreshold*,
13 GDBusMethodInvocation*,guint,guint,guint,guint,gpointer);
14void check_thresholds(SensorIntegerThreshold*,guint);
15
16
17#endif