summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-04-11 15:35:53 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-04-11 15:37:12 +0100
commitc5c1af49f713db3ea8cd5b0fa334a8fb66c8b9ef (patch)
tree4eca4326cf02e6730203eb7d37f038bfb6e071ae /src/lib/eeze
parent3832ec550039a99a98868c09d8fb0e302d4d5653 (diff)
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.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/Eeze_Sensor.h34
-rw-r--r--src/lib/eeze/eeze_main.c1
-rw-r--r--src/lib/eeze/eeze_sensor_private.h39
3 files changed, 36 insertions, 38 deletions
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 0575287186..9825203875 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);
300 */ 300 */
301EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data); 301EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data);
302 302
303/**
304 * @brief Fetch the sensor object by type from the sensor object list
305 * @param type Sensor type to fetch from the list of sensor objects.
306 * @return The sensor object matching the given type
307 *
308 * @since 1.8
309 */
310EAPI Eeze_Sensor_Obj *eeze_sensor_obj_get(Eeze_Sensor_Type type);
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
303#ifdef __cplusplus 337#ifdef __cplusplus
304} 338}
305#endif 339#endif
diff --git a/src/lib/eeze/eeze_main.c b/src/lib/eeze/eeze_main.c
index 9b465401e5..5965dab685 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -9,7 +9,6 @@
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"
13 12
14_udev *udev; 13_udev *udev;
15 14
diff --git a/src/lib/eeze/eeze_sensor_private.h b/src/lib/eeze/eeze_sensor_private.h
index 5cc2e8b732..aa39f94a37 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
74 * 74 *
75 * @since 1.8 75 * @since 1.8
76 */ 76 */
77Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module *mod); 77EAPI Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module *mod);
78 78
79/** 79/**
80 * @brief Unregister a module from eeze_sensor core. 80 * @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)
85 * 85 *
86 * @since 1.8 86 * @since 1.8
87 */ 87 */
88Eina_Bool eeze_sensor_module_unregister(const char *name); 88EAPI Eina_Bool eeze_sensor_module_unregister(const char *name);
89
90/**
91 * @brief Fetch the sensor object by type from the sensor object list
92 * @param type Sensor type to fetch from the list of sensor objects.
93 * @return The sensor object matching the given type
94 *
95 * @since 1.8
96 */
97Eeze_Sensor_Obj *eeze_sensor_obj_get(Eeze_Sensor_Type type);
98
99/**
100 * @brief Initialize the Eeze sensor subsystem.
101 * @return EINA_TRUE for success and EINA_FALSE for failure
102 *
103 * This function must be called before using any of the Eeze_Sensor
104 * functionality to make sure the subsystem is setup correctly for usage. If
105 * you already call #eeze_init in your program this is already been take care
106 * of and there is no need to call this to initialize this subsystem manually.
107 *
108 * @since 1.8
109 */
110Eina_Bool eeze_sensor_init(void);
111
112/**
113 * @brief Clean up and shutdown the Eeze sensor subsystem.
114 *
115 * This function must be called when now longer using Eeze_Sensor to allow the
116 * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
117 * already been taken care of and there is no need to call this to shutdown this
118 * subsystem manually.
119 *
120 * @since 1.8
121 */
122void eeze_sensor_shutdown(void);
123
124#endif // EEZE_SENSOR_PRIVATE_H 89#endif // EEZE_SENSOR_PRIVATE_H