summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-12-03 14:45:14 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-12-03 14:45:14 +0000
commita3269e66fe4a7efaf212013d188584d3011ed3af (patch)
tree0f6f5e7c44eb1e4d5197cb7858d0416b445fba1b /legacy
parent1f5820514e7569d61111cf545fc6d3a541a847ac (diff)
eeze/doc: Notes about init and shutdown of the sensor subsystem.
Make both functions and EAPI as well. Not needed if the general eeze_init is called though. Note that in the docs. SVN revision: 80072
Diffstat (limited to 'legacy')
-rw-r--r--legacy/eeze/src/lib/Eeze_Sensor.h12
-rw-r--r--legacy/eeze/src/lib/eeze_sensor.c4
2 files changed, 10 insertions, 6 deletions
diff --git a/legacy/eeze/src/lib/Eeze_Sensor.h b/legacy/eeze/src/lib/Eeze_Sensor.h
index 332e8ed513..48ed0ba9cf 100644
--- a/legacy/eeze/src/lib/Eeze_Sensor.h
+++ b/legacy/eeze/src/lib/Eeze_Sensor.h
@@ -263,21 +263,25 @@ EAPI Eeze_Sensor_Obj *eeze_sensor_obj_get(Eeze_Sensor_Type type);
263 * @return EINA_TRUE for success and EINA_FALSE for failure 263 * @return EINA_TRUE for success and EINA_FALSE for failure
264 * 264 *
265 * This function must be called before using any of the Eeze_Sensor 265 * This function must be called before using any of the Eeze_Sensor
266 * functionality to make sure the subsystem is setup correctly for usage. 266 * functionality to make sure the subsystem is setup correctly for usage. If
267 * you already call #eeze_init in your program this is already been take care
268 * of and there is no need to call this to initialize this subsystem manually.
267 * 269 *
268 * @since 1.8 270 * @since 1.8
269 */ 271 */
270Eina_Bool eeze_sensor_init(void); 272EAPI Eina_Bool eeze_sensor_init(void);
271 273
272/** 274/**
273 * @brief Clean up and shutdown the Eeze sensor subsystem. 275 * @brief Clean up and shutdown the Eeze sensor subsystem.
274 * 276 *
275 * This function must be called when now longer using Eeze_Sensor to allow the 277 * This function must be called when now longer using Eeze_Sensor to allow the
276 * subsystem to shutdown cleanly. 278 * subsystem to shutdown cleanly. If you already called #eeze_shutdown this is
279 * already been taken care of and there is no need to call this to shutdown this
280 * subsystem manually.
277 * 281 *
278 * @since 1.8 282 * @since 1.8
279 */ 283 */
280void eeze_sensor_shutdown(void); 284EAPI void eeze_sensor_shutdown(void);
281 285
282#ifdef __cplusplus 286#ifdef __cplusplus
283} 287}
diff --git a/legacy/eeze/src/lib/eeze_sensor.c b/legacy/eeze/src/lib/eeze_sensor.c
index 2b9055565a..77508ba248 100644
--- a/legacy/eeze/src/lib/eeze_sensor.c
+++ b/legacy/eeze/src/lib/eeze_sensor.c
@@ -232,7 +232,7 @@ eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data)
232 return EINA_FALSE; 232 return EINA_FALSE;
233} 233}
234 234
235void 235EAPI void
236eeze_sensor_shutdown(void) 236eeze_sensor_shutdown(void)
237{ 237{
238 eeze_sensor_modules_unload(); 238 eeze_sensor_modules_unload();
@@ -244,7 +244,7 @@ eeze_sensor_shutdown(void)
244 eina_shutdown(); 244 eina_shutdown();
245} 245}
246 246
247Eina_Bool 247EAPI Eina_Bool
248eeze_sensor_init(void) 248eeze_sensor_init(void)
249{ 249{
250 if (!eina_init()) return EINA_FALSE; 250 if (!eina_init()) return EINA_FALSE;