Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 6187:1b7e246e6b38
Core: store and dump processed configuration.
If the -T option is passed, additionally to configuration test, configuration
files are output to stdout.
In the debug mode, configuration files are kept in memory and can be accessed
using a debugger.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 14 May 2015 18:54:27 +0300 |
parents | 314c3d7cc3a5 |
children | 18428f775b2c |
comparison
equal
deleted
inserted
replaced
6186:db138b3b645e | 6187:1b7e246e6b38 |
---|---|
144 | 144 |
145 | 145 |
146 typedef struct { | 146 typedef struct { |
147 ngx_file_t file; | 147 ngx_file_t file; |
148 ngx_buf_t *buffer; | 148 ngx_buf_t *buffer; |
149 ngx_buf_t *dump; | |
149 ngx_uint_t line; | 150 ngx_uint_t line; |
150 } ngx_conf_file_t; | 151 } ngx_conf_file_t; |
152 | |
153 | |
154 typedef struct { | |
155 ngx_str_t name; | |
156 ngx_buf_t *buffer; | |
157 } ngx_conf_dump_t; | |
151 | 158 |
152 | 159 |
153 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, | 160 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, |
154 ngx_command_t *dummy, void *conf); | 161 ngx_command_t *dummy, void *conf); |
155 | 162 |