stefan pushed a commit to branch master.

commit 858b45e3be033db155a566272198345fbe03437f
Author: Stefan Schmidt <[email protected]>
Date:   Fri Apr 12 10:47:06 2013 +0100

    eeze/sensor: Make sensor init and shutdown symbols private.
    
    These are called only from eeze_init/shutdown. No need to have them public.
---
 src/lib/eeze/Eeze_Sensor.h         | 25 -------------------------
 src/lib/eeze/eeze_main.c           |  1 +
 src/lib/eeze/eeze_sensor.c         |  4 ++--
 src/lib/eeze/eeze_sensor_private.h | 26 ++++++++++++++++++++++++++
 4 files changed, 29 insertions(+), 27 deletions(-)

diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 9825203..f15de72 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -309,31 +309,6 @@ EAPI Eina_Bool       
eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_da
  */
 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 5965dab..9b46540 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -9,6 +9,7 @@
 #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.c b/src/lib/eeze/eeze_sensor.c
index 107221d..f426901 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -301,7 +301,7 @@ eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void 
*user_data)
    return EINA_FALSE;
 }
 
-EAPI void
+void
 eeze_sensor_shutdown(void)
 {
    eeze_sensor_modules_unload();
@@ -316,7 +316,7 @@ eeze_sensor_shutdown(void)
    eina_shutdown();
 }
 
-EAPI Eina_Bool
+Eina_Bool
 eeze_sensor_init(void)
 {
    if (!eina_init()) return EINA_FALSE;
diff --git a/src/lib/eeze/eeze_sensor_private.h 
b/src/lib/eeze/eeze_sensor_private.h
index aa39f94..d4acd5b 100644
--- a/src/lib/eeze/eeze_sensor_private.h
+++ b/src/lib/eeze/eeze_sensor_private.h
@@ -86,4 +86,30 @@ EAPI Eina_Bool eeze_sensor_module_register(const char *name, 
Eeze_Sensor_Module
  * @since 1.8
  */
 EAPI Eina_Bool eeze_sensor_module_unregister(const char *name);
+
+/**
+ * @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);
+
 #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

Reply via email to