diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-09-07 10:14:25 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-09-07 10:14:25 +0000 |
| commit | 96f8377fd89b8735027ccfebea8ad9e77f40f51c (patch) | |
| tree | 14e7de7a0e7c7d9815184a1e9bb95edab0617990 /src/http/ngx_http.h | |
| parent | a58e3ca14300fce97b2124233afe140c8d59199f (diff) | |
| download | nginx-96f8377fd89b8735027ccfebea8ad9e77f40f51c.tar.gz nginx-96f8377fd89b8735027ccfebea8ad9e77f40f51c.tar.bz2 | |
nginx-0.0.1-2002-09-07-14:14:25 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 3b943d656..cfc9470b7 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -36,12 +36,6 @@ #define NGX_HTTP_DIRECTORY_HANDLER 1 -typedef struct { - void *ctx; /* STUB */ -} ngx_http_module_t; - -/* STUB */ -#define ngx_get_module_ctx(r, module) (module)->ctx typedef struct { char *doc_root; @@ -82,6 +76,10 @@ struct ngx_http_request_s { char *location; ngx_fd_t fd; + void **ctx; + void **loc_conf; + void **srv_conf; + ngx_pool_t *pool; ngx_hunk_t *header_in; @@ -140,6 +138,18 @@ typedef struct { } ngx_http_log_ctx_t; +typedef struct { + int index; +} ngx_http_module_t; + +#define NGX_HTTP_MODULE 0 + +#define ngx_get_module_loc_conf(r, module) r->loc_conf[module.index] +#define ngx_get_module_ctx(r, module) r->ctx[module.index] + + + +/* STUB */ #define NGX_INDEX "index.html" |
