From 60449732b14cef9a6cc7a433a8b2d79727e0942b Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Tue, 10 Feb 2004 19:53:35 +0000 Subject: Add flags field to the sensor structure and an only flag SENSOR_FINVALID which allows to drop information from broken, unwired, disabled, etc sensors. ok hshoexer@ --- sys/sys/sensors.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/sys/sensors.h b/sys/sys/sensors.h index 0c6bd451ee7..152e4c17d80 100644 --- a/sys/sys/sensors.h +++ b/sys/sys/sensors.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.h,v 1.3 2004/02/07 18:20:22 grange Exp $ */ +/* $OpenBSD: sensors.h,v 1.4 2004/02/10 19:53:34 grange Exp $ */ /* * Copyright (c) 2003, 2004 Alexander Yurchenko @@ -52,6 +52,8 @@ struct sensor { char desc[32]; /* sensor description */ int64_t value; /* current value */ u_int rfact; /* resistor factor */ + int flags; /* sensor flags */ +#define SENSOR_FINVALID 0x0001 /* sensor is invalid */ }; SLIST_HEAD(sensors_head, sensor); -- cgit v1.2.3