comparison src/http/ngx_http_variables.h @ 186:54aabf2b0bc6 NGINX_0_3_40

nginx 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.
author Igor Sysoev <http://sysoev.ru>
date Wed, 19 Apr 2006 00:00:00 +0400
parents 71ff1e2b484a
children 2ceaee987f37
comparison
equal deleted inserted replaced
185:a9c5dc369ffe 186:54aabf2b0bc6
26 26
27 #define ngx_http_variable(v) { sizeof(v) - 1, 1, 0, 0, (u_char *) v } 27 #define ngx_http_variable(v) { sizeof(v) - 1, 1, 0, 0, (u_char *) v }
28 28
29 typedef struct ngx_http_variable_s ngx_http_variable_t; 29 typedef struct ngx_http_variable_s ngx_http_variable_t;
30 30
31 typedef void (*ngx_http_set_variable_pt) (ngx_http_request_t *r,
32 ngx_http_variable_value_t *v, uintptr_t data);
31 typedef ngx_int_t (*ngx_http_get_variable_pt) (ngx_http_request_t *r, 33 typedef ngx_int_t (*ngx_http_get_variable_pt) (ngx_http_request_t *r,
32 ngx_http_variable_value_t *v, uintptr_t data); 34 ngx_http_variable_value_t *v, uintptr_t data);
33 35
34 36
35 #define NGX_HTTP_VAR_CHANGABLE 1 37 #define NGX_HTTP_VAR_CHANGABLE 1
38 #define NGX_HTTP_VAR_NOHASH 8 40 #define NGX_HTTP_VAR_NOHASH 8
39 41
40 42
41 struct ngx_http_variable_s { 43 struct ngx_http_variable_s {
42 ngx_str_t name; /* must be first to build the hash */ 44 ngx_str_t name; /* must be first to build the hash */
43 ngx_http_get_variable_pt handler; 45 ngx_http_set_variable_pt set_handler;
46 ngx_http_get_variable_pt get_handler;
44 uintptr_t data; 47 uintptr_t data;
45 ngx_uint_t flags; 48 ngx_uint_t flags;
46 ngx_uint_t index; 49 ngx_uint_t index;
47 }; 50 };
48 51