summaryrefslogtreecommitdiff
path: root/src/modules/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-04-02 15:59:51 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-04-03 17:14:20 +0100
commit9d47faa761f4dfad1848e49523515d06df094267 (patch)
tree9afbf01a594ab4ca2a04835deff76db95038850c /src/modules/eeze
parent6777b743d2d63d8582b538200bb182e0258078b3 (diff)
eeze/sensor: Add more sensor types used in Tizen.
Just setting up the sensor types in the lib and fake module.
Diffstat (limited to 'src/modules/eeze')
-rw-r--r--src/modules/eeze/sensor/fake/fake.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/eeze/sensor/fake/fake.c b/src/modules/eeze/sensor/fake/fake.c
index b8ccc2f228..231f367227 100644
--- a/src/modules/eeze/sensor/fake/fake.c
+++ b/src/modules/eeze/sensor/fake/fake.c
@@ -67,6 +67,9 @@ fake_read(Eeze_Sensor_Type sensor_type, Eeze_Sensor_Obj *lobj)
67 switch (sensor_type) 67 switch (sensor_type)
68 { 68 {
69 case EEZE_SENSOR_TYPE_ACCELEROMETER: 69 case EEZE_SENSOR_TYPE_ACCELEROMETER:
70 case EEZE_SENSOR_TYPE_GRAVITY:
71 case EEZE_SENSOR_TYPE_LINEAR_ACCELERATION:
72 case EEZE_SENSOR_TYPE_DEVICE_ORIENTATION:
70 case EEZE_SENSOR_TYPE_MAGNETIC: 73 case EEZE_SENSOR_TYPE_MAGNETIC:
71 case EEZE_SENSOR_TYPE_ORIENTATION: 74 case EEZE_SENSOR_TYPE_ORIENTATION:
72 case EEZE_SENSOR_TYPE_GYROSCOPE: 75 case EEZE_SENSOR_TYPE_GYROSCOPE:
@@ -127,6 +130,15 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
127 case EEZE_SENSOR_TYPE_ACCELEROMETER: 130 case EEZE_SENSOR_TYPE_ACCELEROMETER:
128 ecore_event_add(EEZE_SENSOR_EVENT_ACCELEROMETER, obj, NULL, NULL); 131 ecore_event_add(EEZE_SENSOR_EVENT_ACCELEROMETER, obj, NULL, NULL);
129 break; 132 break;
133 case EEZE_SENSOR_TYPE_GRAVITY:
134 ecore_event_add(EEZE_SENSOR_EVENT_GRAVITY, obj, NULL, NULL);
135 break;
136 case EEZE_SENSOR_TYPE_LINEAR_ACCELERATION:
137 ecore_event_add(EEZE_SENSOR_EVENT_LINEAR_ACCELERATION, obj, NULL, NULL);
138 break;
139 case EEZE_SENSOR_TYPE_DEVICE_ORIENTATION:
140 ecore_event_add(EEZE_SENSOR_EVENT_DEVICE_ORIENTATION, obj, NULL, NULL);
141 break;
130 case EEZE_SENSOR_TYPE_MAGNETIC: 142 case EEZE_SENSOR_TYPE_MAGNETIC:
131 ecore_event_add(EEZE_SENSOR_EVENT_MAGNETIC, obj, NULL, NULL); 143 ecore_event_add(EEZE_SENSOR_EVENT_MAGNETIC, obj, NULL, NULL);
132 break; 144 break;