diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-08 16:42:03 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-08 16:51:15 +0100 |
commit | 3e2d86693f6e8920c97fe296491e7741e31f922c (patch) | |
tree | 1c755422fd27c7f192243e8eb7f7811193efa1f6 /server/lua-privsep.h | |
parent | e0cabd6295204fe8a6b54edfc9141302943fdbfb (diff) | |
download | privsep-master.tar.bz2 privsep-master.tar.xz |
This allows you load various modules into a server lua state and give
a performance boost when calling the privileged functions
Diffstat (limited to 'server/lua-privsep.h')
-rw-r--r-- | server/lua-privsep.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/lua-privsep.h b/server/lua-privsep.h new file mode 100644 index 0000000..2d27a11 --- /dev/null +++ b/server/lua-privsep.h @@ -0,0 +1,11 @@ +#ifndef LUA_PRIVSEP_H +#define LUA_PRIVSEP_H + +#include "conn.h" +#include <lua.h> + +int call_lua(struct conn *c, const char *msg, size_t msglen); +int init_lua(struct conn *c); +void close_lua(struct conn *c); + +#endif |