00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "apr_optional.h"
00018 #include "httpd.h"
00019 #include "scoreboard.h"
00020
00021 #ifndef _MOD_LOG_CONFIG_H
00022 #define _MOD_LOG_CONFIG_H 1
00023
00024
00025
00026
00027 typedef const char *ap_log_handler_fn_t(request_rec *r, char *a);
00028
00029
00030
00031
00032 typedef void *ap_log_writer_init(apr_pool_t *p, server_rec *s,
00033 const char *name);
00034
00035
00036
00037 typedef apr_status_t ap_log_writer(
00038 request_rec *r,
00039 void *handle,
00040 const char **portions,
00041 int *lengths,
00042 int nelts,
00043 apr_size_t len);
00044
00045 typedef struct ap_log_handler {
00046 ap_log_handler_fn_t *func;
00047 int want_orig_default;
00048 } ap_log_handler;
00049
00050 APR_DECLARE_OPTIONAL_FN(void, ap_register_log_handler,
00051 (apr_pool_t *p, char *tag, ap_log_handler_fn_t *func,
00052 int def));
00053
00054
00055
00056
00057 APR_DECLARE_OPTIONAL_FN(void, ap_log_set_writer_init,(ap_log_writer_init *func));
00058
00059
00060
00061 APR_DECLARE_OPTIONAL_FN(void, ap_log_set_writer, (ap_log_writer* func));
00062
00063 #endif