blob: 5bc8471dcc67374ef7ca9106904c90220c5f7223 [file] [log] [blame]
Igor Sysoev1b138ed2003-11-18 21:34:08 +00001#ifndef _NGX_GARBAGE_COLLECTOR_H_INCLUDED_
2#define _NGX_GARBAGE_COLLECTOR_H_INCLUDED_
3
4
5typedef struct ngx_gc_s ngx_gc_t;
6
7typedef int (*ngx_gc_handler_pt) (ngx_gc_t *ctx, ngx_str_t *name,
8 ngx_dir_t *dir);
9
10
11struct ngx_gc_s {
12 ngx_path_t *path;
13 u_int deleted;
14 off_t freed;
15 ngx_gc_handler_pt handler;
16 ngx_log_t *log;
17};
18
19
Igor Sysoev5f800782003-12-08 20:48:12 +000020int ngx_garbage_collector_temp_handler(ngx_gc_t *ctx, ngx_str_t *name,
Igor Sysoev1b138ed2003-11-18 21:34:08 +000021 ngx_dir_t *dir);
22
23
24#endif /* _NGX_GARBAGE_COLLECTOR_H_INCLUDED_ */