Mercurial > hg > nginx
comparison src/stream/ngx_stream_variables.h @ 7077:2a288909abc6
Variables: macros for null variables.
No functional changes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 01 Aug 2017 14:28:33 +0300 |
parents | d2b2ff157da5 |
children |
comparison
equal
deleted
inserted
replaced
7076:1b82e86dd3e7 | 7077:2a288909abc6 |
---|---|
40 ngx_stream_get_variable_pt get_handler; | 40 ngx_stream_get_variable_pt get_handler; |
41 uintptr_t data; | 41 uintptr_t data; |
42 ngx_uint_t flags; | 42 ngx_uint_t flags; |
43 ngx_uint_t index; | 43 ngx_uint_t index; |
44 }; | 44 }; |
45 | |
46 #define ngx_stream_null_variable { ngx_null_string, NULL, NULL, 0, 0, 0 } | |
45 | 47 |
46 | 48 |
47 ngx_stream_variable_t *ngx_stream_add_variable(ngx_conf_t *cf, ngx_str_t *name, | 49 ngx_stream_variable_t *ngx_stream_add_variable(ngx_conf_t *cf, ngx_str_t *name, |
48 ngx_uint_t flags); | 50 ngx_uint_t flags); |
49 ngx_int_t ngx_stream_get_variable_index(ngx_conf_t *cf, ngx_str_t *name); | 51 ngx_int_t ngx_stream_get_variable_index(ngx_conf_t *cf, ngx_str_t *name); |