Mercurial > wgsdk
comparison src/include/timer.h @ 7:be4835547dd0
clean up code, convert git files to hg, etc.
| author | Paper |
|---|---|
| date | Fri, 16 Dec 2022 20:35:06 -0500 |
| parents | d91dfd53b8b4 |
| children | 42ac054c0231 |
comparison
equal
deleted
inserted
replaced
| 6:8ce85aee15c0 | 7:be4835547dd0 |
|---|---|
| 3 #ifndef WIN32_LEAN_AND_MEAN | 3 #ifndef WIN32_LEAN_AND_MEAN |
| 4 # define WIN32_LEAN_AND_MEAN | 4 # define WIN32_LEAN_AND_MEAN |
| 5 #endif | 5 #endif |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 | 7 |
| 8 struct timer_t { | 8 struct timer { |
| 9 int initialized; | 9 int initialized; |
| 10 int is_timer_alive; | 10 int is_timer_alive; |
| 11 UINT interval; | 11 UINT interval; |
| 12 HWND winampClientWindow; | 12 HWND winampClientWindow; |
| 13 TIMERPROC timer_proc; | 13 TIMERPROC timer_proc; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 void timer_init(struct timer_t* timer, HWND winampClientWindow, TIMERPROC timer_proc); | 16 void timer_init(struct timer* timer, HWND winampClientWindow, TIMERPROC timer_proc); |
| 17 void timer_set(struct timer_t* timer, HWND winampClientWindow); | 17 void timer_set(struct timer* timer, HWND winampClientWindow); |
| 18 void timer_stop(struct timer_t* timer, HWND winampClientWindow); | 18 void timer_stop(struct timer* timer, HWND winampClientWindow); |
| 19 | 19 |
| 20 #endif // __timer_h | 20 #endif // __timer_h |
