Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afsweb / apache_api.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 /*
11 * Apache API calls required by libapacheafs.a
12 */
13
14 #ifndef _APACHE_API_H_INCLUDED_
15 #define _APACHE_API_H_INCLUDED_
16
17 #ifdef APACHE_1_3
18
19 #ifdef APACHE_1_3_1
20 #include "1.3.1/httpd.h"
21 #include "1.3.1/http_conf_globals.h"
22 #include "1.3.1/ap_compat.h"
23 #elif defined(APACHE_1_3_6)
24 #include "1.3.6/httpd.h"
25 #include "1.3.6/http_conf_globals.h"
26 #include "1.3.6/ap_compat.h"
27 #else
28 #error No Apache subversion defined for APACHE_1_3 (such as APACHE_1_3_6)
29 #endif /* APACHE_1_3_1 */
30
31 #define OS_ESCAPE_PATH ap_os_escape_path
32 #define TABLE_SET ap_table_set
33 #define TABLE_GET ap_table_get
34 #define PID_FNAME ap_pid_fname
35 #define GETWORD ap_getword
36 #define GETWORD_NULLS ap_getword_nulls
37 #define GET_TIME ap_get_time
38 #define UUDECODE ap_uudecode
39 #define DOCUMENT_ROOT ap_document_root
40 #define PSTRCAT ap_pstrcat
41 #define LOG_REASON ap_log_reason
42 #define FIND_LINKED_MODULE ap_find_linked_module
43 #else
44 #include "1.2/httpd.h"
45 #include "1.2/http_conf_globals.h" /* for pid_fname */
46
47 #define OS_ESCAPE_PATH os_escape_path
48 #define TABLE_SET table_set
49 #define TABLE_GET table_get
50 #define PID_FNAME pid_fname
51 #define GETWORD getword
52 #define GETWORD_NULLS getword_nulls
53 #define GET_TIME get_time
54 #define UUDECODE uudecode
55 #define DOCUMENT_ROOT document_root
56 #define PSTRCAT pstrcat
57 #define LOG_REASON log_reason
58 #define FIND_LINKED_MODULE find_linked_module
59 #endif
60 #endif /* _APACHE_API_H_INCLUDED_ */