comparison src/http/ngx_http_log_handler.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 src/http/modules/ngx_http_log_handler.h@a059e1aa65d4
children 4db54fdbcbe7
comparison
equal deleted inserted replaced
175:e92c2c647c57 176:c0552e5ab567
1 #ifndef _NGX_HTTP_LOG_HANDLER_H_INCLUDED_
2 #define _NGX_HTTP_LOG_HANDLER_H_INCLUDED_
3
4
5 #include <ngx_config.h>
6 #include <ngx_core.h>
7 #include <ngx_http.h>
8
9
10 typedef char *(*ngx_http_log_op_pt) (ngx_http_request_t *r, char *buf,
11 uintptr_t data);
12
13 #define NGX_HTTP_LOG_COPY_SHORT (ngx_http_log_op_pt) 0
14 #define NGX_HTTP_LOG_COPY_LONG (ngx_http_log_op_pt) -1
15
16 #define NGX_HTTP_LOG_ARG (u_int) -1
17
18 /* STUB */
19 #define NGX_INT32_LEN sizeof("4294967296") - 1
20 #define NGX_OFF_LEN sizeof("18446744073709551616") - 1
21
22
23 typedef struct {
24 size_t len;
25 ngx_http_log_op_pt op;
26 uintptr_t data;
27 } ngx_http_log_op_t;
28
29
30 typedef struct {
31 ngx_str_t name;
32 ngx_array_t *ops; /* array of ngx_http_log_op_t */
33 } ngx_http_log_fmt_t;
34
35
36 typedef struct {
37 ngx_str_t name;
38 size_t len;
39 ngx_http_log_op_pt op;
40 } ngx_http_log_op_name_t;
41
42
43 typedef struct {
44 ngx_array_t formats; /* array of ngx_http_log_fmt_t */
45 } ngx_http_log_main_conf_t;
46
47
48 typedef struct {
49 ngx_open_file_t *file;
50 ngx_array_t *ops; /* array of ngx_http_log_op_t */
51 } ngx_http_log_t;
52
53
54 typedef struct {
55 ngx_array_t *logs; /* array of ngx_http_log_t */
56 } ngx_http_log_loc_conf_t;
57
58
59 #endif /* _NGX_HTTP_LOG_HANDLER_H_INCLUDED_ */