diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-11-22 20:42:01 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-11-22 20:42:01 +0000 |
commit | 9857082f094b8d1e7b8c089e60c667a3b15b8f3e (patch) | |
tree | 29fd47239e1a00c8f4e756c00ce31c7085461ee6 /src/http/ngx_http_variables.h | |
parent | 1575d12bd7305494193125a293a59d9b649b40a6 (diff) | |
download | nginx-9857082f094b8d1e7b8c089e60c667a3b15b8f3e.tar.gz nginx-9857082f094b8d1e7b8c089e60c667a3b15b8f3e.zip |
variable value rbtree support
Diffstat (limited to 'src/http/ngx_http_variables.h')
-rw-r--r-- | src/http/ngx_http_variables.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/http/ngx_http_variables.h b/src/http/ngx_http_variables.h index bed0c64fd..0e86aaf3d 100644 --- a/src/http/ngx_http_variables.h +++ b/src/http/ngx_http_variables.h @@ -63,6 +63,19 @@ ngx_int_t ngx_http_variables_add_core_vars(ngx_conf_t *cf); ngx_int_t ngx_http_variables_init_vars(ngx_conf_t *cf); +typedef struct { + ngx_rbtree_node_t node; + size_t len; + ngx_http_variable_value_t *value; +} ngx_http_variable_value_node_t; + + +void ngx_http_variable_value_rbtree_insert(ngx_rbtree_node_t *temp, + ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel); +ngx_http_variable_value_t *ngx_http_variable_value_lookup(ngx_rbtree_t *rbtree, + ngx_str_t *name, uint32_t hash); + + extern ngx_http_variable_value_t ngx_http_variable_null_value; extern ngx_http_variable_value_t ngx_http_variable_true_value; |