From 37f687e09940b8aea678b166750b54cd90d34e55 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 3 May 2012 17:19:20 +0000 Subject: uhttpd: added uhttpd.docroot Passes the document-root to the Lua handler by placing it in uhttpd.docroot. It could alternatively be placed in env.DOCUMENT_ROOT which would more closely resemble the CGI protocol; but would mean that it is not available at the time when the handler-chunk is loaded but rather not until the handler is called, without any code savings. Signed-off-by: David Favro git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31571 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/uhttpd/src/uhttpd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/uhttpd/src/uhttpd.h') diff --git a/package/uhttpd/src/uhttpd.h b/package/uhttpd/src/uhttpd.h index 993bf93af..c03d1ae65 100644 --- a/package/uhttpd/src/uhttpd.h +++ b/package/uhttpd/src/uhttpd.h @@ -83,7 +83,7 @@ struct config { char *lua_prefix; char *lua_handler; lua_State *lua_state; - lua_State * (*lua_init) (const char *handler); + lua_State * (*lua_init) (const struct config *conf); void (*lua_close) (lua_State *L); void (*lua_request) (struct client *cl, struct http_request *req, lua_State *L); #endif -- cgit v1.2.3