summaryrefslogtreecommitdiffstats
path: root/apache20.h
blob: 1b54858cc8939bf573fda183b7f71c85517d4e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* $Header: /home/cvs/mod_log_sql/apache20.h,v 1.3 2004/01/21 04:34:21 urkle Exp $ */
#ifndef APACHE20_H
#define APACHE20_H

#include "apr_strings.h"
#include "apr_lib.h"
#include "apr_hash.h"
#include "apr_optional.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include "apr_tables.h"

#include "ap_config.h"

#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"

#include "util_time.h"

static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6)));
static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...)
{
	static char buff[MAX_STRING_LEN];
	va_list args;
	va_start(args, fmt);
	apr_vsnprintf(buff,MAX_STRING_LEN, fmt,args);
	ap_log_error(file,line,level,0,s,"%s",buff);
	va_end(args);
}

#endif /* APACHE20_H */