OSDN Git Service

libhardware: add data field for proximity sensors
authorIliyan Malchev <malchev@google.com>
Wed, 8 Jul 2009 20:54:17 +0000 (13:54 -0700)
committerIliyan Malchev <malchev@google.com>
Wed, 8 Jul 2009 20:54:17 +0000 (13:54 -0700)
Signed-off-by: Iliyan Malchev <malchev@google.com>
include/hardware/sensors.h

index a6bee56..a8e538d 100644 (file)
@@ -216,6 +216,9 @@ typedef struct {
 
         /* temperature is in degrees centigrade (Celsius) */
         float           temperature;
+
+        /* distance in centimeters */
+        float           distance;
     };
 
     /* time is in nanosecond */