diff options
author | Aki <please@ignore.pl> | 2020-08-24 19:42:00 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-24 19:42:00 +0200 |
commit | c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60 (patch) | |
tree | ea5ede20a2674d865b28bbf5f121bd2da9779003 /connection.h | |
parent | beab4f743429525add08cd22341470c972cb01be (diff) | |
download | plop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.zip plop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.tar.gz plop-c47d4b2314b06f28cae47d4dd14ef4c9c5c1af60.tar.bz2 |
Added connection stub
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 17 |
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 *); |