export uh_http_header to plugins
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Jan 2013 00:45:54 +0000 (01:45 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Jan 2013 00:45:54 +0000 (01:45 +0100)
plugin.c
plugin.h

index 6a89761a95892654cf103f39a6d3a632f4dd475d..ecf6660b705dd33d97b0ae06a0b9f5fa0dd8434d 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -26,6 +26,7 @@ static const struct uhttpd_ops ops = {
        .path_match = uh_path_match,
        .create_process = uh_create_process,
        .get_process_vars = uh_get_process_vars,
+       .http_header = uh_http_header,
        .client_error = uh_client_error,
        .request_done = uh_request_done,
        .chunk_write = uh_chunk_write,
index 1025161bbf259d37b3ab2e0f555e5cfdb1aee926..25bcaa39ee3ade61cba300b395e15311ed86d00a 100644 (file)
--- a/plugin.h
+++ b/plugin.h
@@ -27,6 +27,7 @@ struct uhttpd_ops {
                               void (*cb)(struct client *cl, struct path_info *pi, char *url));
        struct env_var *(*get_process_vars)(struct client *cl, struct path_info *pi);
 
+       void (*http_header)(struct client *cl, int code, const char *summary);
        void (*client_error)(struct client *cl, int code, const char *summary, const char *fmt, ...);
        void (*request_done)(struct client *cl);
        void (*chunk_write)(struct client *cl, const void *data, int len);