aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeout.h')
-rw-r--r--src/timeout.h20
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
4typedef struct t_tm_tag {
5 int tm_return;
6 int tm_block;
7 int tm_start;
8 int tm_end;
9} t_tm;
10typedef t_tm *p_tm;
11
12void tm_set(p_tm tm, int tm_block, int tm_return);
13int tm_getremaining(p_tm tm);
14int tm_getelapsed(p_tm tm);
15int tm_gettime(void);
16void tm_get(p_tm tm, int *tm_block, int *tm_return);
17void tm_markstart(p_tm tm);
18void tm_open(lua_State *L);
19
20#endif