diff options
Diffstat (limited to 'src/timeout.h')
| -rw-r--r-- | src/timeout.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/timeout.h b/src/timeout.h new file mode 100644 index 0000000..af7e591 --- /dev/null +++ b/src/timeout.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #ifndef _TM_H | ||
| 2 | #define _TM_H | ||
| 3 | |||
| 4 | typedef struct t_tm_tag { | ||
| 5 | int tm_return; | ||
| 6 | int tm_block; | ||
| 7 | int tm_start; | ||
| 8 | int tm_end; | ||
| 9 | } t_tm; | ||
| 10 | typedef t_tm *p_tm; | ||
| 11 | |||
| 12 | void tm_set(p_tm tm, int tm_block, int tm_return); | ||
| 13 | int tm_getremaining(p_tm tm); | ||
| 14 | int tm_getelapsed(p_tm tm); | ||
| 15 | int tm_gettime(void); | ||
| 16 | void tm_get(p_tm tm, int *tm_block, int *tm_return); | ||
| 17 | void tm_markstart(p_tm tm); | ||
| 18 | void tm_open(lua_State *L); | ||
| 19 | |||
| 20 | #endif | ||
