diff options
author | Aki <please@ignore.pl> | 2021-02-24 20:43:11 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-02-24 20:43:11 +0100 |
commit | d46748ac59c3b8d8895d2671aa4b1eca3914d1d4 (patch) | |
tree | 1538031a06ab20bf423b9e6d13c7a1e0670ead76 /stream.h | |
parent | 4fdf60a4c9ce16dd459e05ad7664010ea45c43db (diff) | |
download | plop-d46748ac59c3b8d8895d2671aa4b1eca3914d1d4.zip plop-d46748ac59c3b8d8895d2671aa4b1eca3914d1d4.tar.gz plop-d46748ac59c3b8d8895d2671aa4b1eca3914d1d4.tar.bz2 |
Added buffer and garbage collection to stream
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 *); |