uhttpd:
[project/luci.git] / contrib / package / uhttpd / src / uhttpd-lua.h
1 #ifndef _UHTTPD_LUA_
2
3 #include <math.h>  /* floor() */
4
5 #include <lua.h>
6 #include <lauxlib.h>
7 #include <lualib.h>
8
9 #define UH_LUA_CALLBACK         "handle_request"
10
11 #define UH_LUA_ERR_TIMEOUT -1
12 #define UH_LUA_ERR_TOOBIG  -2
13 #define UH_LUA_ERR_PARAM   -3
14
15
16 lua_State * uh_lua_init();
17
18 void uh_lua_request(
19         struct client *cl, struct http_request *req, lua_State *L
20 );
21
22 #endif