diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-19 00:04:31 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-19 00:04:31 +0300 |
commit | f5a359bdec93bb4dbe38c8b13fff957a71b0f896 (patch) | |
tree | c5ba8fb434757b0e584fdf73ec234166ccc49d77 /src/core/ngx_file.h | |
parent | da7281a6daef3a48ea7dd9574dc80234b9b86308 (diff) |
add size, access, and mtime to ngx_walk_tree()
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r-- | src/core/ngx_file.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h index f8107ae8c..80dbd3319 100644 --- a/src/core/ngx_file.h +++ b/src/core/ngx_file.h @@ -58,18 +58,23 @@ typedef struct { typedef struct ngx_tree_ctx_s ngx_tree_ctx_t; -typedef ngx_int_t (*ngx_tree_init_handler_pt) (ngx_tree_ctx_t *ctx, - ngx_tree_ctx_t *prev); +typedef ngx_int_t (*ngx_tree_init_handler_pt) (void *ctx, void *prev); typedef ngx_int_t (*ngx_tree_handler_pt) (ngx_tree_ctx_t *ctx, ngx_str_t *name); struct ngx_tree_ctx_s { + off_t size; + ngx_uint_t access; + time_t mtime; + ngx_tree_init_handler_pt init_handler; ngx_tree_handler_pt file_handler; ngx_tree_handler_pt pre_tree_handler; ngx_tree_handler_pt post_tree_handler; ngx_tree_handler_pt spec_handler; + void *data; - size_t size; + size_t alloc; + ngx_log_t *log; }; |