summaryrefslogtreecommitdiffhomepage
path: root/stream.h
blob: f38b6efdaa5a6c11856ca922e0f9f4f75d848309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#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 *);