summaryrefslogtreecommitdiffhomepage
path: root/connection.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-24 19:42:00 +0200
committerAki <please@ignore.pl>2020-08-24 19:42:00 +0200
commitc47d4b2314b06f28cae47d4dd14ef4c9c5c1af60 (patch)
treeea5ede20a2674d865b28bbf5f121bd2da9779003 /connection.h
parentbeab4f743429525add08cd22341470c972cb01be (diff)
downloadplop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.zip
plop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.tar.gz
plop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.tar.bz2
Added connection stub
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 *);