stefan pushed a commit to branch master.

commit 6b70dd57d3119797988f3ec028c3dda22a0c3e90
Author: Stefan Schmidt <[email protected]>
Date:   Fri Apr 12 13:47:25 2013 +0100

    eeze/sensor: Move eeze_Sernsor_obj_get into private header.
    
    Together with eeze_sensor_module_register/unregister these are the functions
    that are irrelevant for developer when they just want to use the eeze_sensor
    API.
    
    Still all three need to be marked with EAPI as they are used in the backend
    modules and due to our visibility hidden usage the module loading would fail
    if we remove EAPI from them.
    
    Moving them into the private header should give an indication that these are
    not meant for pure API users.
---
 src/lib/eeze/Eeze_Sensor.h         | 9 ---------
 src/lib/eeze/eeze_sensor_private.h | 9 +++++++++
 src/tests/eeze/eeze_suite.c        | 1 +
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index f15de72..0575287 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -300,15 +300,6 @@ EAPI Eina_Bool eeze_sensor_read(Eeze_Sensor_Obj *sens);
  */
 EAPI Eina_Bool       eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void 
*user_data);
 
-/**
- * @brief Fetch the sensor object by type from the sensor object list
- * @param type Sensor type to fetch from the list of sensor objects.
- * @return The sensor object matching the given type
- *
- * @since 1.8
- */
-EAPI Eeze_Sensor_Obj    *eeze_sensor_obj_get(Eeze_Sensor_Type type);
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/src/lib/eeze/eeze_sensor_private.h 
b/src/lib/eeze/eeze_sensor_private.h
index d4acd5b..d8f0a28 100644
--- a/src/lib/eeze/eeze_sensor_private.h
+++ b/src/lib/eeze/eeze_sensor_private.h
@@ -88,6 +88,15 @@ EAPI Eina_Bool eeze_sensor_module_register(const char *name, 
Eeze_Sensor_Module
 EAPI Eina_Bool eeze_sensor_module_unregister(const char *name);
 
 /**
+ * @brief Fetch the sensor object by type from the sensor object list
+ * @param type Sensor type to fetch from the list of sensor objects.
+ * @return The sensor object matching the given type
+ *
+ * @since 1.8
+ */
+EAPI Eeze_Sensor_Obj    *eeze_sensor_obj_get(Eeze_Sensor_Type type);
+
+/**
  * @brief Initialize the Eeze sensor subsystem.
  * @return EINA_TRUE for success and EINA_FALSE for failure
  *
diff --git a/src/tests/eeze/eeze_suite.c b/src/tests/eeze/eeze_suite.c
index cb49b2d..71c7213 100644
--- a/src/tests/eeze/eeze_suite.c
+++ b/src/tests/eeze/eeze_suite.c
@@ -14,6 +14,7 @@
 #include <Eeze_Net.h>
 
 #include "eeze_udev_private.h"
+#include "eeze_sensor_private.h"
 
 START_TEST(eeze_test_init)
 {

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to