diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-07-03 19:06:54 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-07-03 19:06:54 +0000 |
commit | 88026bef8a5ca586e354965a79134646fb566c72 (patch) | |
tree | 7594d9748c9dfd5db4addc0756b0cf86a0d9206a /src/timeout.h | |
parent | 9b8bce6465d2c7de84782f9e12f529a020a16444 (diff) | |
download | luasocket-88026bef8a5ca586e354965a79134646fb566c72.tar.gz luasocket-88026bef8a5ca586e354965a79134646fb566c72.tar.bz2 luasocket-88026bef8a5ca586e354965a79134646fb566c72.zip |
Initial revision
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 | ||