summaryrefslogtreecommitdiff
path: root/src/lib/eeze/Eeze_Sensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eeze/Eeze_Sensor.h')
-rw-r--r--src/lib/eeze/Eeze_Sensor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index a1d3327376..67783760ec 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -148,6 +148,7 @@ typedef struct _Eeze_Sensor_Obj
148 float data[3]; /**< Sensor data depending on the sensor type */ 148 float data[3]; /**< Sensor data depending on the sensor type */
149 double timestamp; /**< Timestamp of data read */ 149 double timestamp; /**< Timestamp of data read */
150 Eina_Bool continuous_flow; /**< FUTURE USE: Continuous flow of sensor read out */ 150 Eina_Bool continuous_flow; /**< FUTURE USE: Continuous flow of sensor read out */
151 void *user_data; /**< Data pointer used for passing data to the asynchronous callback */
151} Eeze_Sensor_Obj; 152} Eeze_Sensor_Obj;
152 153
153#ifdef __cplusplus 154#ifdef __cplusplus
@@ -297,6 +298,9 @@ EAPI Eina_Bool eeze_sensor_read(Eeze_Sensor_Obj *sens);
297 * physical sensor. That might be a long time depending on the hardware and its 298 * physical sensor. That might be a long time depending on the hardware and its
298 * interface. 299 * interface.
299 * 300 *
301 * The extra data passed in as user_data here will be available in the user_data
302 * pointer of the sensor object when the ecore event arrives.
303 *
300 * @since 1.8 304 * @since 1.8
301 */ 305 */
302EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data); 306EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data);