odyssey/src/mm_timer.h

22 lines
340 B
C
Raw Normal View History

2017-04-07 15:08:26 +00:00
#ifndef MM_TIMER_H_
#define MM_TIMER_H_
/*
* machinarium.
*
* cooperative multitasking engine.
*/
2017-04-10 12:11:06 +00:00
typedef struct mm_timer_t mm_timer_t;
2017-04-07 15:08:26 +00:00
typedef int (*mm_timer_callback_t)(mm_timer_t*);
struct mm_timer_t {
int timeout;
int seq;
2017-04-07 15:08:26 +00:00
mm_timer_callback_t callback;
void *arg;
};
#endif