summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-04 23:14:07 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-04 23:14:07 +0100
commitb949545598eaa75b38b4d57c9aea6216bd82256c (patch)
treee8716e9b8ad6fb3bec788ed7f78c332284f1934c /uhttpd.h
parent0e7c0877717534db5ecac58df9f01c60776e85db (diff)
add lua plugin support
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 9ed6439..b8dfece 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -49,6 +49,8 @@ struct config {
const char *error_handler;
const char *cgi_prefix;
const char *cgi_path;
+ const char *lua_handler;
+ const char *lua_prefix;
int no_symlinks;
int no_dirlists;
int network_timeout;
@@ -235,7 +237,9 @@ void uh_relay_close(struct relay *r, int ret);
void uh_relay_free(struct relay *r);
struct env_var *uh_get_process_vars(struct client *cl, struct path_info *pi);
-bool uh_create_process(struct client *cl, struct path_info *pi,
- void (*cb)(struct client *cl, struct path_info *pi));
+bool uh_create_process(struct client *cl, struct path_info *pi, const char *url,
+ void (*cb)(struct client *cl, struct path_info *pi, const char *url));
+
+int uh_plugin_init(const char *name);
#endif