summaryrefslogtreecommitdiffstats
path: root/apache13.h
diff options
context:
space:
mode:
Diffstat (limited to 'apache13.h')
-rw-r--r--apache13.h54
1 files changed, 11 insertions, 43 deletions
diff --git a/apache13.h b/apache13.h
index ce4ec64..8181c43 100644
--- a/apache13.h
+++ b/apache13.h
@@ -1,4 +1,4 @@
1/* $Id$ */ 1/* $Header: /home/cvs/mod_log_sql/apache13.h,v 1.4 2004/02/05 21:59:46 urkle Exp $ */
2#ifndef APACHE13_H 2#ifndef APACHE13_H
3#define APACHE13_H 3#define APACHE13_H
4 4
@@ -8,27 +8,25 @@
8#include "http_core.h" 8#include "http_core.h"
9 9
10/* Defines */ 10/* Defines */
11#define AP_MODULE_DECLARE_DATA MODULE_VAR_EXPORT 11#define AP_MODULE_DECLARE_DATA
12#define APR_OFF_T_FMT "ld" 12#define APR_OFF_T_FMT "ld"
13#define APR_PID_T_FMT "d" 13#define APR_PID_T_FMT "d"
14#define APR_SUCCESS 0 14#define APR_SUCCESS 0
15#define APR_OFFSETOF XtOffsetOf 15#define APR_OFFSETOF XtOffsetOf
16 16
17/** method of declaring a directive with raw argument parsing */ 17/*AP_INIT_TAKE1("LogSQLTransferLogTable", set_server_nmv_string_slot,
18# define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \ 18 (void *)APR_OFFSETOF(logsql_state, transfer_table_name), RSRC_CONF,
19 { directive, func, mconfig, where, RAW_ARGS, help } 19 "The database table that holds the transfer log")
20
21{"LogSQLTransferLogTable", set_log_sql_transfer_table, NULL, RSRC_CONF, TAKE1,
22 "The database table that holds the transfer log"}*/
23
20/** method of declaring a directive which takes 1 argument */ 24/** method of declaring a directive which takes 1 argument */
21# define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ 25# define AP_INIT_TAKE1(directive, func, mconfig, where, help) \
22 { directive, func, mconfig, where, TAKE1, help } 26 { directive, func, mconfig, where, TAKE1, help }
23/** method of declaring a directive which takes 2 argument */
24# define AP_INIT_TAKE2(directive, func, mconfig, where, help) \
25 { directive, func, mconfig, where, TAKE2, help }
26/** method of declaring a directive which takes multiple arguments */ 27/** method of declaring a directive which takes multiple arguments */
27# define AP_INIT_ITERATE(directive, func, mconfig, where, help) \ 28# define AP_INIT_ITERATE(directive, func, mconfig, where, help) \
28 { directive, func, mconfig, where, ITERATE, help } 29 { directive, func, mconfig, where, ITERATE, help }
29/** method of declaring a directive which takes 1 or 3 arguments */
30# define AP_INIT_TAKE13(directive, func, mconfig, where, help) \
31 { directive, func, mconfig, where, TAKE13, help }
32/** method of declaring a directive which takes 3 arguments */ 30/** method of declaring a directive which takes 3 arguments */
33# define AP_INIT_TAKE3(directive, func, mconfig, where, help) \ 31# define AP_INIT_TAKE3(directive, func, mconfig, where, help) \
34 { directive, func, mconfig, where, TAKE3, help } 32 { directive, func, mconfig, where, TAKE3, help }
@@ -39,35 +37,21 @@
39/* Types */ 37/* Types */
40#define apr_pool_t pool 38#define apr_pool_t pool
41#define apr_array_header_t array_header 39#define apr_array_header_t array_header
42#define apr_table_t table
43
44#define apr_status_t int
45#define apr_uri_t uri_components
46 40
47/* Functions */ 41/* Functions */
48#define ap_get_remote_host(a,b,c,d) ap_get_remote_host(a,b,c) 42#define ap_get_remote_host(a,b,c,d) ap_get_remote_host(a,b,c)
49#define ap_set_deprecated NULL 43
50
51#define apr_uri_unparse ap_unparse_uri_components 44#define apr_uri_unparse ap_unparse_uri_components
52#define apr_uri_parse ap_parse_uri_components
53#define ap_add_version_component(p,s) ap_add_version_component(s)
54 45
55#define apr_pool_create(a,b) *(a) = ap_make_sub_pool(b) 46#define apr_pool_create(a,b) *(a) = ap_make_sub_pool(b)
56#define apr_pool_destroy ap_destroy_pool
57#define apr_palloc ap_palloc 47#define apr_palloc ap_palloc
58#define apr_pcalloc ap_pcalloc 48#define apr_pcalloc ap_pcalloc
59#define apr_pstrdup ap_pstrdup 49#define apr_pstrdup ap_pstrdup
60#define apr_pstrcat ap_pstrcat 50#define apr_pstrcat ap_pstrcat
61#define apr_psprintf ap_psprintf 51#define apr_psprintf ap_psprintf
62#define apr_snprintf ap_snprintf 52#define apr_snprintf ap_snprintf
63#define ap_strchr strchr
64#define ap_strchr_c strchr
65#define ap_strstr strstr
66#define ap_strstr_c strstr
67 53
68#define apr_table_set ap_table_set
69#define apr_table_get ap_table_get 54#define apr_table_get ap_table_get
70#define apr_table_make ap_make_table
71 55
72#define apr_array_push ap_push_array 56#define apr_array_push ap_push_array
73#define apr_array_make ap_make_array 57#define apr_array_make ap_make_array
@@ -76,22 +60,6 @@
76 60
77#define apr_tolower ap_tolower 61#define apr_tolower ap_tolower
78 62
79void log_error(char *file, int line, int level, apr_status_t status, 63#define log_error ap_log_error
80 const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 6,7)));
81
82#ifndef WIN32
83inline
84#endif
85void log_error(char *file, int line, int level,
86 apr_status_t status, const server_rec *s, const char *fmt, ...)
87{
88 static char buff[MAX_STRING_LEN];
89 va_list args;
90 va_start(args, fmt);
91 ap_vsnprintf(buff,MAX_STRING_LEN, fmt,args);
92 ap_log_error(file,line,level | APLOG_NOERRNO ,s,"%s",buff);
93 va_end(args);
94}
95
96 64
97#endif /* APACHE13_H */ 65#endif /* APACHE13_H */