diff options
author | damiano | 1998-04-09 13:55:38 +0000 |
---|---|---|
committer | damiano | 1998-04-09 13:55:38 +0000 |
commit | 6d4a1d57836737d2e7ac8b4e3f19b0ba736e3981 (patch) | |
tree | 8c36fa43b5e19ce4332a3ee4c7408e89d04e8970 /src/timer.h | |
parent | 6143ab5fb9ee7f32f6f779c06c176957fac8c3f2 (diff) | |
download | ivy-c-6d4a1d57836737d2e7ac8b4e3f19b0ba736e3981.zip ivy-c-6d4a1d57836737d2e7ac8b4e3f19b0ba736e3981.tar.gz ivy-c-6d4a1d57836737d2e7ac8b4e3f19b0ba736e3981.tar.bz2 ivy-c-6d4a1d57836737d2e7ac8b4e3f19b0ba736e3981.tar.xz |
Move des fichiers dans src
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h new file mode 100644 index 0000000..7aa425f --- /dev/null +++ b/src/timer.h @@ -0,0 +1,18 @@ +/* Module de gestion des timers autour d'un select */ + +typedef struct _timer *TimerId; +typedef void (*TimerCb)( TimerId id , void *user_data, unsigned long delta ); + +/* API le temp est en milli secondes */ +#define TIMER_LOOP -1 /* timer en boucle infinie */ +TimerId TimerRepeatAfter( int count, long time, TimerCb cb, void *user_data ); + +void TimerModify( TimerId id, long time ); + +void TimerRemove( TimerId id ); + +/* Interface avec select */ + +struct timeval *TimerGetSmallestTimeout(); + +void TimerScan(); |