summaryrefslogtreecommitdiffhomepage
path: root/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/connection.h b/connection.h
new file mode 100644
index 0000000..3a7b32a
--- /dev/null
+++ b/connection.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <lua.h>
+
+#include "request.h"
+
+struct connection
+{
+ int fd;
+ int lua_ref;
+ lua_State * L;
+ struct request * request;
+};
+
+struct connection * connection_new(lua_State *, const int);
+void connection_clear(struct connection *);
+void connection_free(lua_State *, struct connection *);