summaryrefslogtreecommitdiffhomepage
path: root/stream.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-03-04 22:22:28 +0100
committerAki <please@ignore.pl>2021-03-04 22:22:28 +0100
commit18b2a4391fe8d442e917f5b2c2f26b18ec9374ac (patch)
treeba96c3c1b5ad026b6a41dbc8356aba6b4f4c9a79 /stream.h
parent296fe762dd2207d4052c0d41c9186ac23922dd1d (diff)
downloadplop-18b2a4391fe8d442e917f5b2c2f26b18ec9374ac.zip
plop-18b2a4391fe8d442e917f5b2c2f26b18ec9374ac.tar.gz
plop-18b2a4391fe8d442e917f5b2c2f26b18ec9374ac.tar.bz2
Partially implementd writing
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 *);