summaryrefslogtreecommitdiffhomepage
path: root/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index f1bc32c..5119fcc 100644
--- a/stream.h
+++ b/stream.h
@@ -15,9 +15,14 @@ struct stream
{
int fd;
struct buffer in;
+ struct buffer out;
};
int stream_push_new(lua_State *, const int);
int stream_gc(lua_State *);
int stream_read(lua_State *);
int stream_readk(lua_State *, const int, lua_KContext);
+int stream_write(lua_State *);
+int stream_flush(lua_State *);
+int stream_flushk(lua_State *, const int, lua_KContext);
+int stream_discard(lua_State *);