diff src/http/ngx_http_config.h @ 176:c0552e5ab567

nginx-0.0.1-2003-11-09-23:03:38 import; separate building
author Igor Sysoev <igor@sysoev.ru>
date Sun, 09 Nov 2003 20:03:38 +0000
parents cd54bcbaf3b5
children 4db54fdbcbe7
line wrap: on
line diff
--- a/src/http/ngx_http_config.h
+++ b/src/http/ngx_http_config.h
@@ -47,6 +47,8 @@ typedef struct {
 #define ngx_http_get_module_srv_conf(r, module)  r->srv_conf[module.ctx_index]
 #define ngx_http_get_module_loc_conf(r, module)  r->loc_conf[module.ctx_index]
 
+#define ngx_http_conf_module_main_conf(cf, module)                            \
+            ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
 
 
 extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r);