summaryrefslogtreecommitdiffhomepage
path: root/plop.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-07-07 17:47:21 +0200
committerAki <please@ignore.pl>2020-07-07 17:47:21 +0200
commitf6aa26cb6489338c66c07cea14f2892eec88cb01 (patch)
treeadc2b975bc3c0399a69850c113a5b37dc6f6357d /plop.h
parentebf5def64dbb2474e9105a4fbdd9b875c023d3e5 (diff)
downloadplop-f6aa26cb6489338c66c07cea14f2892eec88cb01.zip
plop-f6aa26cb6489338c66c07cea14f2892eec88cb01.tar.gz
plop-f6aa26cb6489338c66c07cea14f2892eec88cb01.tar.bz2
Preparations to completely separate execution-related from plop itself
Diffstat (limited to 'plop.h')
-rw-r--r--plop.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/plop.h b/plop.h
new file mode 100644
index 0000000..2ecd678
--- /dev/null
+++ b/plop.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <poll.h>
+
+#include <lua.h>
+
+#include "http.h"
+
+int make_server(const char *, const char *);
+int handle_client(lua_State * L, struct pollfd *, struct request **, const int);
+int handle_server(struct pollfd *, int, const int);