Fix and change for scroll at the end of the line.
[eco.git] / timer.h
blob982ead6a3fec93cab8ee812a60b82dcb33c53c84
1 /*
2 * Copyright (C) 2009 Diego Hernan Borghetti.
3 * Eco
4 */
6 #ifndef _ECO_TIMER_H
7 #define _ECO_TIMER_H
9 typedef struct _E_Timer {
10 struct _E_Timer *next;
11 struct _E_Timer *prev;
13 /* timer id. */
14 int id;
16 /* time in seconds. */
17 double time;
19 /* counter time. */
20 double ctime;
22 /* and the callback function. */
23 void (*exec)(int, void *);
25 /* user data. */
26 void *data;
27 } E_Timer;
29 int e_timer_list(void);
30 void e_timer_exec(void);
31 void e_timer_add(int id, double time, void (*fn)(int, void *), void *data);
32 void e_timer_rem(int id);
34 #endif /* _ECO_TIMER_H */