summaryrefslogtreecommitdiffhomepage
path: root/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 5762bc8..f38b6ef 100644
--- a/stream.h
+++ b/stream.h
@@ -2,9 +2,18 @@
#include <lua.h>
+struct buffer
+{
+ char * data;
+ int length;
+ int offset;
+};
+
struct stream
{
int fd;
+ struct buffer in;
};
int stream_push_new(lua_State *, const int);
+int stream_gc(lua_State *);