From 10fc9ef77503ec4db5f5006557aeffc1939043ca Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 27 Oct 2003 08:53:49 +0000 Subject: nginx-0.0.1-2003-10-27-11:53:49 import --- src/core/ngx_log.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/core/ngx_log.h') diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index dcbbef831..959c13206 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -63,11 +63,14 @@ typedef enum { */ +typedef size_t (*ngx_log_handler_pt) (void *ctx, char *buf, size_t len); + + typedef struct { - int log_level; - ngx_open_file_t *file; - void *data; - size_t (*handler)(void *ctx, char *buf, size_t len); + int log_level; + ngx_open_file_t *file; + void *data; + ngx_log_handler_pt handler; #if 0 /* STUB */ -- cgit