Ecore.h: use ECORE_CALLBACK_RENEW/CANCEL for timer callback.

This commit is contained in:
Daniel Juyung Seo 2013-03-17 17:54:32 +09:00
parent 797c1a1283
commit 0140560530
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@
* timer_func(void *data) * timer_func(void *data)
* { * {
* printf("Tick timer. Sec: %3.2f\n", ecore_time_get() - start_time); * printf("Tick timer. Sec: %3.2f\n", ecore_time_get() - start_time);
* return 1; * return ECORE_CALLBACK_RENEW;
* } * }
* *
* int * int
@ -1760,12 +1760,12 @@ EAPI double ecore_loop_time_get(void);
* @code * @code
* Eina_Bool my_func(void *data) { * Eina_Bool my_func(void *data) {
* do_funky_stuff_with_data(data); * do_funky_stuff_with_data(data);
* return EINA_TRUE; * return ECORE_CALLBACK_RENEW;
* } * }
* ecore_timer_add(interval_in_seconds, my_func, data_given_to_function); * ecore_timer_add(interval_in_seconds, my_func, data_given_to_function);
* @endcode * @endcode
* @note If the function was to be executed only once simply return * @note If the function was to be executed only once simply return
* @c EINA_FALSE instead. * @c ECORE_CALLBACK_CANCEL instead.
* *
* An example that shows the usage of a lot of these: * An example that shows the usage of a lot of these:
* @li @ref ecore_timer_example_c * @li @ref ecore_timer_example_c