summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-10 19:53:35 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-10 19:53:35 +0000
commit60449732b14cef9a6cc7a433a8b2d79727e0942b (patch)
tree74deee6b8178775f28a059de35c55f7f84d74007 /sys
parentf1b45d69045e1c244ea9de132f4750c55453edc3 (diff)
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@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sensors.h4
1 files changed, 3 insertions, 1 deletions
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 <grange@openbsd.org>
@@ -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);