summaryrefslogtreecommitdiffhomepage
path: root/connection.h
blob: 88cd6b864d43449729f767225863badc0077a2bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <lua.h>

struct connection
{
	int fd;
	int ref;
	lua_State * L;
};

struct connection * connection_new(lua_State *, const int);
void connection_free(lua_State *, struct connection *);