From c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 24 Aug 2020 19:42:00 +0200 Subject: Added connection stub --- connection.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 connection.h (limited to 'connection.h') 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 + +#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 *); -- cgit v1.1