From 18b2a4391fe8d442e917f5b2c2f26b18ec9374ac Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 4 Mar 2021 22:22:28 +0100 Subject: Partially implementd writing --- stream.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stream.h') 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 *); -- cgit v1.1