summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_variables.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-04-19 15:30:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-04-19 15:30:56 +0000
commit7bdb720d6a7b75021ca7cea17d6f3199b5acf4ca (patch)
tree1ff27cb0b6a00fc3a58aee44f869baa6574f0329 /src/http/ngx_http_variables.h
parentafae3fd4a4ba16147fa7a4db8e4d90799ee3b56b (diff)
downloadnginx-release-0.3.40.tar.gz
nginx-release-0.3.40.tar.bz2
nginx-0.3.40-RELEASE importrelease-0.3.40
*) Feature: the ngx_http_dav_module supports the MKCOL method. *) Feature: the "create_full_put_path" directive. *) Feature: the "$limit_rate" variable.
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_variables.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.h b/src/http/ngx_http_variables.h
index 2043a0518..8a24ffbc7 100644
--- a/src/http/ngx_http_variables.h
+++ b/src/http/ngx_http_variables.h
@@ -28,6 +28,8 @@ typedef struct {
typedef struct ngx_http_variable_s ngx_http_variable_t;
+typedef void (*ngx_http_set_variable_pt) (ngx_http_request_t *r,
+ ngx_http_variable_value_t *v, uintptr_t data);
typedef ngx_int_t (*ngx_http_get_variable_pt) (ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data);
@@ -40,7 +42,8 @@ typedef ngx_int_t (*ngx_http_get_variable_pt) (ngx_http_request_t *r,
struct ngx_http_variable_s {
ngx_str_t name; /* must be first to build the hash */
- ngx_http_get_variable_pt handler;
+ ngx_http_set_variable_pt set_handler;
+ ngx_http_get_variable_pt get_handler;
uintptr_t data;
ngx_uint_t flags;
ngx_uint_t index;