annotate src/include/timer.h @ 10:42ac054c0231
*: huge refactoring
dirtools now uses wchar (wayyy overdue)
the timer doesn't have a stupid design anymore
we don't use windows.h at all now
...
author |
Paper <paper@paper.us.eu.org> |
date |
Sun, 11 Feb 2024 19:43:31 -0500 |
parents |
be4835547dd0 |
children |
|
rev |
line source |
0
|
1 #ifndef __timer_h
|
|
2 #define __timer_h
|
10
|
3
|
|
4 #include <windef.h>
|
|
5 #include <winuser.h>
|
0
|
6
|
7
|
7 struct timer {
|
10
|
8 UINT_PTR id;
|
0
|
9 UINT interval;
|
|
10 TIMERPROC timer_proc;
|
|
11 };
|
|
12
|
10
|
13 void timer_init(struct timer* timer, UINT interval, TIMERPROC timer_proc);
|
|
14 int timer_set(struct timer* timer);
|
|
15 int timer_stop(struct timer* timer);
|
0
|
16
|
|
17 #endif // __timer_h |