summaryrefslogtreecommitdiff
path: root/package/uhttpd/src/uhttpd.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:20 +0000
commit54b34ccbc5a41e7bdbf29271dcc380715418f8c1 (patch)
treec764006195d2181e43fd9461543327e70523740e /package/uhttpd/src/uhttpd.h
parentbcd8d530d10127ce0be796fe7ef42944c47d4485 (diff)
downloadmtk-20170518-54b34ccbc5a41e7bdbf29271dcc380715418f8c1.zip
mtk-20170518-54b34ccbc5a41e7bdbf29271dcc380715418f8c1.tar.gz
mtk-20170518-54b34ccbc5a41e7bdbf29271dcc380715418f8c1.tar.bz2
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 <openwrt@meta-dynamic.com> SVN-Revision: 31571
Diffstat (limited to 'package/uhttpd/src/uhttpd.h')
-rw-r--r--package/uhttpd/src/uhttpd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd.h b/package/uhttpd/src/uhttpd.h
index 993bf93..c03d1ae 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