aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2015-05-14 18:54:27 +0300
committerVladimir Homutov <vl@nginx.com>2015-05-14 18:54:27 +0300
commit4e83d3f7b5355b36c2d28cd77f4cfefe4521f3ee (patch)
tree12cd90b9d31e778033f96b30157e1f24764fdb91 /src/core/ngx_conf_file.h
parent42c32b733b95e5e9ce9a627cdc19096c1c6f8e63 (diff)
downloadnginx-4e83d3f7b5355b36c2d28cd77f4cfefe4521f3ee.tar.gz
nginx-4e83d3f7b5355b36c2d28cd77f4cfefe4521f3ee.zip
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.
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r--src/core/ngx_conf_file.h7
1 files changed, 7 insertions, 0 deletions
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);