You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/02/27 21:50:48 UTC

[GitHub] vrahane closed pull request #855: SensorAPI: Re-adding sensor_read_evt_ctx

vrahane closed pull request #855: SensorAPI: Re-adding sensor_read_evt_ctx
URL: https://github.com/apache/mynewt-core/pull/855
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/sensor/include/sensor/sensor.h b/hw/sensor/include/sensor/sensor.h
index 23a32c084..7047099af 100644
--- a/hw/sensor/include/sensor/sensor.h
+++ b/hw/sensor/include/sensor/sensor.h
@@ -275,6 +275,16 @@ struct sensor_notifier {
     SLIST_ENTRY(sensor_notifier) sn_next;
 };
 
+/**
+ * Context for sensor read events
+ */
+struct sensor_read_ev_ctx {
+    /* The sensor for which the ev cb should be called */
+    struct sensor *srec_sensor;
+    /* The sensor type */
+    sensor_type_t srec_type;
+};
+
 /**
  * Sensor type traits list
  */


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services