summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-01 16:29:21 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-01 16:32:20 +0900
commit22bf1b3db2dbbbd17d931bdeaf50917c3617f76f (patch)
treec2e1b4ca5d63c61c18fd47ad0da64af458ecf5f2 /src/lib/eeze
parent66b86f5866b6e899f9f0c0538d22d2c7864985a7 (diff)
downloadefl-22bf1b3db2dbbbd17d931bdeaf50917c3617f76f.tar.gz
eeze - sensors - ints for sensor events were decld in .h - and never .c
this was bad - we never had eeze sensor events declared inside eeze so they were only in the .h - they could be diff symbols and thus valuses may not match. big @fix - it worked by luck, not design.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/Eeze_Sensor.h42
-rw-r--r--src/lib/eeze/eeze_sensor.c22
2 files changed, 43 insertions, 21 deletions
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 67783760ec..014b734d89 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -103,27 +103,27 @@ typedef enum
* @since 1.8
* @{
*/
-EAPI int EEZE_SENSOR_EVENT_ACCELEROMETER;
-EAPI int EEZE_SENSOR_EVENT_GRAVITY;
-EAPI int EEZE_SENSOR_EVENT_LINEAR_ACCELERATION;
-EAPI int EEZE_SENSOR_EVENT_DEVICE_ORIENTATION;
-EAPI int EEZE_SENSOR_EVENT_MAGNETIC;
-EAPI int EEZE_SENSOR_EVENT_ORIENTATION;
-EAPI int EEZE_SENSOR_EVENT_GYROSCOPE;
-EAPI int EEZE_SENSOR_EVENT_LIGHT;
-EAPI int EEZE_SENSOR_EVENT_PROXIMITY;
-EAPI int EEZE_SENSOR_EVENT_SNAP;
-EAPI int EEZE_SENSOR_EVENT_SHAKE;
-EAPI int EEZE_SENSOR_EVENT_DOUBLETAP;
-EAPI int EEZE_SENSOR_EVENT_PANNING;
-EAPI int EEZE_SENSOR_EVENT_PANNING_BROWSE;
-EAPI int EEZE_SENSOR_EVENT_TILT;
-EAPI int EEZE_SENSOR_EVENT_FACEDOWN;
-EAPI int EEZE_SENSOR_EVENT_DIRECT_CALL;
-EAPI int EEZE_SENSOR_EVENT_SMART_ALERT;
-EAPI int EEZE_SENSOR_EVENT_NO_MOVE;
-EAPI int EEZE_SENSOR_EVENT_BAROMETER;
-EAPI int EEZE_SENSOR_EVENT_TEMPERATURE;
+EAPI extern int EEZE_SENSOR_EVENT_ACCELEROMETER;
+EAPI extern int EEZE_SENSOR_EVENT_GRAVITY;
+EAPI extern int EEZE_SENSOR_EVENT_LINEAR_ACCELERATION;
+EAPI extern int EEZE_SENSOR_EVENT_DEVICE_ORIENTATION;
+EAPI extern int EEZE_SENSOR_EVENT_MAGNETIC;
+EAPI extern int EEZE_SENSOR_EVENT_ORIENTATION;
+EAPI extern int EEZE_SENSOR_EVENT_GYROSCOPE;
+EAPI extern int EEZE_SENSOR_EVENT_LIGHT;
+EAPI extern int EEZE_SENSOR_EVENT_PROXIMITY;
+EAPI extern int EEZE_SENSOR_EVENT_SNAP;
+EAPI extern int EEZE_SENSOR_EVENT_SHAKE;
+EAPI extern int EEZE_SENSOR_EVENT_DOUBLETAP;
+EAPI extern int EEZE_SENSOR_EVENT_PANNING;
+EAPI extern int EEZE_SENSOR_EVENT_PANNING_BROWSE;
+EAPI extern int EEZE_SENSOR_EVENT_TILT;
+EAPI extern int EEZE_SENSOR_EVENT_FACEDOWN;
+EAPI extern int EEZE_SENSOR_EVENT_DIRECT_CALL;
+EAPI extern int EEZE_SENSOR_EVENT_SMART_ALERT;
+EAPI extern int EEZE_SENSOR_EVENT_NO_MOVE;
+EAPI extern int EEZE_SENSOR_EVENT_BAROMETER;
+EAPI extern int EEZE_SENSOR_EVENT_TEMPERATURE;
/**@}*/
/**
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 92b29c3c87..32f7a78042 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -10,6 +10,28 @@
#include <Eeze_Sensor.h>
#include "eeze_sensor_private.h"
+EAPI int EEZE_SENSOR_EVENT_ACCELEROMETER;
+EAPI int EEZE_SENSOR_EVENT_GRAVITY;
+EAPI int EEZE_SENSOR_EVENT_LINEAR_ACCELERATION;
+EAPI int EEZE_SENSOR_EVENT_DEVICE_ORIENTATION;
+EAPI int EEZE_SENSOR_EVENT_MAGNETIC;
+EAPI int EEZE_SENSOR_EVENT_ORIENTATION;
+EAPI int EEZE_SENSOR_EVENT_GYROSCOPE;
+EAPI int EEZE_SENSOR_EVENT_LIGHT;
+EAPI int EEZE_SENSOR_EVENT_PROXIMITY;
+EAPI int EEZE_SENSOR_EVENT_SNAP;
+EAPI int EEZE_SENSOR_EVENT_SHAKE;
+EAPI int EEZE_SENSOR_EVENT_DOUBLETAP;
+EAPI int EEZE_SENSOR_EVENT_PANNING;
+EAPI int EEZE_SENSOR_EVENT_PANNING_BROWSE;
+EAPI int EEZE_SENSOR_EVENT_TILT;
+EAPI int EEZE_SENSOR_EVENT_FACEDOWN;
+EAPI int EEZE_SENSOR_EVENT_DIRECT_CALL;
+EAPI int EEZE_SENSOR_EVENT_SMART_ALERT;
+EAPI int EEZE_SENSOR_EVENT_NO_MOVE;
+EAPI int EEZE_SENSOR_EVENT_BAROMETER;
+EAPI int EEZE_SENSOR_EVENT_TEMPERATURE;
+
static Eeze_Sensor *g_handle;
static Eina_Prefix *pfx;