X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensor.h;h=3f833d174965dc48d34dd5606c04ec43a3dcf8d8;hb=4f1f3077d6b38e212527b0aaaf7564ba83f0ba81;hp=bd43fc19adce9e012afbfdacd44c218ad651d979;hpb=ef065a355c92c834adcfa49f866d23ef4153cf36;p=matches%2FMCTX3420.git diff --git a/server/sensor.h b/server/sensor.h index bd43fc1..3f833d1 100644 --- a/server/sensor.h +++ b/server/sensor.h @@ -50,7 +50,7 @@ typedef struct double min_error; double max_warn; double min_warn; -} SensorThres; +} SensorThreshold; extern void Sensor_Init(); // One off initialisation of *all* sensors @@ -62,7 +62,7 @@ extern void Sensor_Stop(Sensor * s); // Stop a Sensor from recording data extern void * Sensor_Loop(void * args); // Main loop for a thread that handles a Sensor extern bool Sensor_Read(Sensor * s, DataPoint * d); // Read a single DataPoint, indicating if it has changed since the last one -extern void Sensor_CheckData(SensorId id, DataPoint * d); // Check a DataPoint +extern void Sensor_CheckData(SensorId id, double value); // Check a DataPoint extern Sensor * Sensor_Identify(const char * str); // Identify a Sensor from a string Id extern void Sensor_Handler(FCGIContext *context, char * params); // Handle a FCGI request for Sensor data