add some docs

SVN revision: 27579
This commit is contained in:
rephorm 2006-12-28 03:31:44 +00:00 committed by rephorm
parent affe150318
commit 20afc1f154
2 changed files with 19 additions and 0 deletions

View File

@ -10,6 +10,13 @@ static int idlers_delete_me = 0;
* @param data The data to be passed to this @p func call.
* @return A idler handle if successfully added. NULL otherwise.
* @ingroup Idle_Group
*
* Add an idler handle to the event loop, returning a handle on success and
* NULL otherwise. The function @p func will be called repeatedly while
* no other events are ready to be processed, as long as it returns 1. A return
* of 0 deletes the idler.
*
* Idlers are useful for progressively prossessing data without blocking.
*/
EAPI Ecore_Idler *
ecore_idler_add(int (*func) (void *data), const void *data)

View File

@ -23,6 +23,15 @@ static double last_check = 0.0;
* @param data Data to pass to @p func when it is called.
* @return A timer object on success. @c NULL on failure.
* @ingroup Ecore_Time_Group
*
* This function adds a timer and returns its handle on success and NULL on
* failure. The function @p func will be called every @in@ seconds. The
* function will be passed the @p data pointer as its parameter.
*
* When the timer @p func is called, it must return a value of either 1 or 0.
* If it returns 1, it will be called again at the next tick, or if it returns
* 0 it will be deleted automatically making any references/handles for it
* invalid.
*/
EAPI Ecore_Timer *
ecore_timer_add(double in, int (*func) (void *data), const void *data)
@ -46,6 +55,9 @@ ecore_timer_add(double in, int (*func) (void *data), const void *data)
* @return The data pointer set for the timer when @ref ecore_timer_add was
* called. @c NULL is returned if the function is unsuccessful.
* @ingroup Ecore_Time_Group
*
* Note: @p timer must be a valid handle. If the timer function has already
* returned 0, the handle is no longer valid (and does not need to be delete).
*/
EAPI void *
ecore_timer_del(Ecore_Timer *timer)