diff options
Diffstat (limited to 'contrib/package/uhttpd/src/uhttpd-lua.h')
-rw-r--r-- | contrib/package/uhttpd/src/uhttpd-lua.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd-lua.h b/contrib/package/uhttpd/src/uhttpd-lua.h new file mode 100644 index 000000000..7596b354d --- /dev/null +++ b/contrib/package/uhttpd/src/uhttpd-lua.h @@ -0,0 +1,20 @@ +#ifndef _UHTTPD_LUA_ + +#include <math.h> /* floor() */ + +#include <lua.h> +#include <lauxlib.h> +#include <lualib.h> + +#define UH_LUA_CALLBACK "handle_request" + +#define UH_LUA_ERR_TIMEOUT -1 +#define UH_LUA_ERR_TOOBIG -2 +#define UH_LUA_ERR_PARAM -3 + + +lua_State * uh_lua_init(); + +void uh_lua_request(struct client *cl, struct http_request *req, lua_State *L); + +#endif |