diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 03:14:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-25 03:14:20 +0000 |
commit | 752bc0bc9843709ff347fd39d27268215776a5ee (patch) | |
tree | b477a4b47a912d708c4a881a10e2633b1c7566c9 | |
parent | 8f47abb286aff1ac1eeb54c031126434ba064962 (diff) |
add a struct timeval to struct sensor. any sensor which wishes the user
to know when it was last adjusted, can set a timestamp in here. if tv_sec
is 0, the timestamp is invalid (maintaining the norm); ok dlg kettenis
-rw-r--r-- | sys/sys/sensors.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/sensors.h b/sys/sys/sensors.h index 74f9f94f541..739193556c2 100644 --- a/sys/sys/sensors.h +++ b/sys/sys/sensors.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.h,v 1.16 2006/04/20 21:00:20 deraadt Exp $ */ +/* $OpenBSD: sensors.h,v 1.17 2006/04/25 03:14:19 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Alexander Yurchenko <grange@openbsd.org> @@ -80,6 +80,7 @@ struct sensor { int flags; /* sensor flags */ #define SENSOR_FINVALID 0x0001 /* sensor is invalid */ #define SENSOR_FUNKNOWN 0x0002 /* sensor value is unknown */ + struct timeval tv; /* sensor value last change time */ }; #ifdef _KERNEL |