From 4e83d3f7b5355b36c2d28cd77f4cfefe4521f3ee Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Thu, 14 May 2015 18:54:27 +0300 Subject: 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. --- src/core/ngx_conf_file.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/ngx_conf_file.h') diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h index d73a6c8bf..ee4430674 100644 --- a/src/core/ngx_conf_file.h +++ b/src/core/ngx_conf_file.h @@ -146,10 +146,17 @@ typedef struct { typedef struct { ngx_file_t file; ngx_buf_t *buffer; + ngx_buf_t *dump; ngx_uint_t line; } ngx_conf_file_t; +typedef struct { + ngx_str_t name; + ngx_buf_t *buffer; +} ngx_conf_dump_t; + + typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, ngx_command_t *dummy, void *conf); -- cgit