diff options
Diffstat (limited to 'src/unix.h')
-rw-r--r-- | src/unix.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/unix.h b/src/unix.h new file mode 100644 index 0000000..7b2a5c5 --- /dev/null +++ b/src/unix.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef UNIX_H | ||
2 | #define UNIX_H | ||
3 | /*=========================================================================*\ | ||
4 | * Unix domain object | ||
5 | * LuaSocket toolkit | ||
6 | * | ||
7 | * This module is just an example of how to extend LuaSocket with a new | ||
8 | * domain. | ||
9 | * | ||
10 | * RCS ID: $Id$ | ||
11 | \*=========================================================================*/ | ||
12 | #include <lua.h> | ||
13 | |||
14 | #include "buffer.h" | ||
15 | #include "timeout.h" | ||
16 | #include "socket.h" | ||
17 | |||
18 | typedef struct t_unix_ { | ||
19 | t_sock sock; | ||
20 | t_io io; | ||
21 | t_buf buf; | ||
22 | t_tm tm; | ||
23 | } t_unix; | ||
24 | typedef t_unix *p_unix; | ||
25 | |||
26 | int unix_open(lua_State *L); | ||
27 | |||
28 | #endif /* UNIX_H */ | ||