From 11cbb4498b2da95ece2ad4ce940ca9cda8b479eb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 7 Jan 2013 01:45:54 +0100 Subject: [PATCH] export uh_http_header to plugins --- plugin.c | 1 + plugin.h | 1 + 2 files changed, 2 insertions(+) diff --git a/plugin.c b/plugin.c index 6a89761..ecf6660 100644 --- 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, diff --git a/plugin.h b/plugin.h index 1025161..25bcaa3 100644 --- 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); -- 2.25.1