stefan pushed a commit to branch master.
commit c5c1af49f713db3ea8cd5b0fa334a8fb66c8b9ef
Author: Stefan Schmidt <[email protected]>
Date: Thu Apr 11 15:35:53 2013 +0100
Revert "eeze/sensor: Expose less symbols for the initial API."
Sadly not ready yet as jenkins showed me. Need some more work on
the eeze_sensor_object_get front.
This reverts commit 081d55c51ca204e9f7decb45f5ff1d561a79c9e3.
---
src/lib/eeze/Eeze_Sensor.h | 34 +++++++++++++++++++++++++++++++++
src/lib/eeze/eeze_main.c | 1 -
src/lib/eeze/eeze_sensor_private.h | 39 ++------------------------------------
3 files changed, 36 insertions(+), 38 deletions(-)
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 0575287..9825203 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -300,6 +300,40 @@ 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);
+
+/**
+ * @brief Initialize the Eeze sensor subsystem.
+ * @return EINA_TRUE for success and EINA_FALSE for failure
+ *
+ * This function must be called before using any of the Eeze_Sensor
+ * functionality to make sure the subsystem is setup correctly for usage. If
+ * you already call #eeze_init in your program this is already been take care
+ * of and there is no need to call this to initialize this subsystem manually.
+ *
+ * @since 1.8
+ */
+EAPI Eina_Bool eeze_sensor_init(void);
+
+/**
+ * @brief Clean up and shutdown the Eeze sensor subsystem.
+ *
+ * This function must be called when now longer using Eeze_Sensor to allow the
+ * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
+ * already been taken care of and there is no need to call this to shutdown
this
+ * subsystem manually.
+ *
+ * @since 1.8
+ */
+EAPI void eeze_sensor_shutdown(void);
+
#ifdef __cplusplus
}
#endif
diff --git a/src/lib/eeze/eeze_main.c b/src/lib/eeze/eeze_main.c
index 9b46540..5965dab 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -9,7 +9,6 @@
#include "eeze_udev_private.h"
#include "eeze_net_private.h"
#include "eeze_disk_private.h"
-#include "eeze_sensor_private.h"
_udev *udev;
diff --git a/src/lib/eeze/eeze_sensor_private.h
b/src/lib/eeze/eeze_sensor_private.h
index 5cc2e8b..aa39f94 100644
--- a/src/lib/eeze/eeze_sensor_private.h
+++ b/src/lib/eeze/eeze_sensor_private.h
@@ -74,7 +74,7 @@ typedef struct _Eeze_Sensor_Module
*
* @since 1.8
*/
-Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module
*mod);
+EAPI Eina_Bool eeze_sensor_module_register(const char *name,
Eeze_Sensor_Module *mod);
/**
* @brief Unregister a module from eeze_sensor core.
@@ -85,40 +85,5 @@ Eina_Bool eeze_sensor_module_register(const char *name,
Eeze_Sensor_Module *mod)
*
* @since 1.8
*/
-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
- */
-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
- *
- * This function must be called before using any of the Eeze_Sensor
- * functionality to make sure the subsystem is setup correctly for usage. If
- * you already call #eeze_init in your program this is already been take care
- * of and there is no need to call this to initialize this subsystem manually.
- *
- * @since 1.8
- */
-Eina_Bool eeze_sensor_init(void);
-
-/**
- * @brief Clean up and shutdown the Eeze sensor subsystem.
- *
- * This function must be called when now longer using Eeze_Sensor to allow the
- * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
- * already been taken care of and there is no need to call this to shutdown
this
- * subsystem manually.
- *
- * @since 1.8
- */
-void eeze_sensor_shutdown(void);
-
+EAPI Eina_Bool eeze_sensor_module_unregister(const char *name);
#endif // EEZE_SENSOR_PRIVATE_H
--
------------------------------------------------------------------------------
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