diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-06 20:33:38 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-06 20:33:38 -0700 |
commit | af32a8d59463ddf67154cb432da232cfb185e6bc (patch) | |
tree | a76f265084079bc5bd56a0116c7fa23287f7776a /include/hardware/sensors.h | |
parent | 3f4fe3107512a71162e8485699ad744629f35fdf (diff) | |
download | hardware_libhardware-af32a8d59463ddf67154cb432da232cfb185e6bc.zip hardware_libhardware-af32a8d59463ddf67154cb432da232cfb185e6bc.tar.gz hardware_libhardware-af32a8d59463ddf67154cb432da232cfb185e6bc.tar.bz2 |
minor changes to sensor HAL interface
Change-Id: Idc415fd0a92482f4f4cd051b458a28d97f251f35
Diffstat (limited to 'include/hardware/sensors.h')
-rw-r--r-- | include/hardware/sensors.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 4fd4468..6e7ac5d 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -70,7 +70,8 @@ enum { */ enum { /* a previous flush operation has completed */ - META_DATA_FLUSH_COMPLETE = 1 + META_DATA_FLUSH_COMPLETE = 1, + META_DATA_VERSION /* always last, leave auto-assigned */ }; /** @@ -197,11 +198,11 @@ enum { * the HAL and are generated spontaneously, as opposed to be related to * a physical sensor. * - * sensors_meta_data_event_t.base.version must be 0 - * sensors_meta_data_event_t.base.sensor must be 0 - * sensors_meta_data_event_t.base.type must be SENSOR_TYPE_META_DATA - * sensors_meta_data_event_t.base.reserved must be 0 - * sensors_meta_data_event_t.base.timestamp must be 0 + * sensors_meta_data_event_t.version must be META_DATA_VERSION + * sensors_meta_data_event_t.sensor must be 0 + * sensors_meta_data_event_t.type must be SENSOR_TYPE_META_DATA + * sensors_meta_data_event_t.reserved must be 0 + * sensors_meta_data_event_t.timestamp must be 0 * * The payload is a meta_data_event_t, where: * meta_data_event_t.what can take the following values: |