view 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
line wrap: on
line source

#ifndef __timer_h
#define __timer_h

#include <windef.h>
#include <winuser.h>

struct timer {
	UINT_PTR id;
	UINT interval;
	TIMERPROC timer_proc;
};

void timer_init(struct timer* timer, UINT interval, TIMERPROC timer_proc);
int timer_set(struct timer* timer);
int timer_stop(struct timer* timer);

#endif // __timer_h