summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-04-12 10:47:06 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-04-12 11:35:05 +0100
commit858b45e3be033db155a566272198345fbe03437f (patch)
tree3d7c839e2186298bb218cd806e65bd721cc86adb /src/lib/eeze
parent53e7fb6edc938481df16550903ae7af2035af106 (diff)
eeze/sensor: Make sensor init and shutdown symbols private.
These are called only from eeze_init/shutdown. No need to have them public.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/Eeze_Sensor.h25
-rw-r--r--src/lib/eeze/eeze_main.c1
-rw-r--r--src/lib/eeze/eeze_sensor.c4
-rw-r--r--src/lib/eeze/eeze_sensor_private.h26
4 files changed, 29 insertions, 27 deletions
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 9825203875..f15de72e45 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
309 */ 309 */
310EAPI Eeze_Sensor_Obj *eeze_sensor_obj_get(Eeze_Sensor_Type type); 310EAPI Eeze_Sensor_Obj *eeze_sensor_obj_get(Eeze_Sensor_Type type);
311 311
312/**
313 * @brief Initialize the Eeze sensor subsystem.
314 * @return EINA_TRUE for success and EINA_FALSE for failure
315 *
316 * This function must be called before using any of the Eeze_Sensor
317 * functionality to make sure the subsystem is setup correctly for usage. If
318 * you already call #eeze_init in your program this is already been take care
319 * of and there is no need to call this to initialize this subsystem manually.
320 *
321 * @since 1.8
322 */
323EAPI Eina_Bool eeze_sensor_init(void);
324
325/**
326 * @brief Clean up and shutdown the Eeze sensor subsystem.
327 *
328 * This function must be called when now longer using Eeze_Sensor to allow the
329 * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
330 * already been taken care of and there is no need to call this to shutdown this
331 * subsystem manually.
332 *
333 * @since 1.8
334 */
335EAPI void eeze_sensor_shutdown(void);
336
337#ifdef __cplusplus 312#ifdef __cplusplus
338} 313}
339#endif 314#endif
diff --git a/src/lib/eeze/eeze_main.c b/src/lib/eeze/eeze_main.c
index 5965dab685..9b465401e5 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -9,6 +9,7 @@
9#include "eeze_udev_private.h" 9#include "eeze_udev_private.h"
10#include "eeze_net_private.h" 10#include "eeze_net_private.h"
11#include "eeze_disk_private.h" 11#include "eeze_disk_private.h"
12#include "eeze_sensor_private.h"
12 13
13_udev *udev; 14_udev *udev;
14 15
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 107221dfd4..f4269018dc 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)
301 return EINA_FALSE; 301 return EINA_FALSE;
302} 302}
303 303
304EAPI void 304void
305eeze_sensor_shutdown(void) 305eeze_sensor_shutdown(void)
306{ 306{
307 eeze_sensor_modules_unload(); 307 eeze_sensor_modules_unload();
@@ -316,7 +316,7 @@ eeze_sensor_shutdown(void)
316 eina_shutdown(); 316 eina_shutdown();
317} 317}
318 318
319EAPI Eina_Bool 319Eina_Bool
320eeze_sensor_init(void) 320eeze_sensor_init(void)
321{ 321{
322 if (!eina_init()) return EINA_FALSE; 322 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 aa39f94a37..d4acd5b480 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
86 * @since 1.8 86 * @since 1.8
87 */ 87 */
88EAPI Eina_Bool eeze_sensor_module_unregister(const char *name); 88EAPI Eina_Bool eeze_sensor_module_unregister(const char *name);
89
90/**
91 * @brief Initialize the Eeze sensor subsystem.
92 * @return EINA_TRUE for success and EINA_FALSE for failure
93 *
94 * This function must be called before using any of the Eeze_Sensor
95 * functionality to make sure the subsystem is setup correctly for usage. If
96 * you already call #eeze_init in your program this is already been take care
97 * of and there is no need to call this to initialize this subsystem manually.
98 *
99 * @since 1.8
100 */
101Eina_Bool eeze_sensor_init(void);
102
103/**
104 * @brief Clean up and shutdown the Eeze sensor subsystem.
105 *
106 * This function must be called when now longer using Eeze_Sensor to allow the
107 * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
108 * already been taken care of and there is no need to call this to shutdown this
109 * subsystem manually.
110 *
111 * @since 1.8
112 */
113void eeze_sensor_shutdown(void);
114
89#endif // EEZE_SENSOR_PRIVATE_H 115#endif // EEZE_SENSOR_PRIVATE_H