mod_ap-compat.h
Go to the documentation of this file.
1 /*
2  * track API changes in http-devel
3  */
4 
5 #define GRST_AP_VERSION (AP_SERVER_MAJORVERSION_NUMBER * 10000 + AP_SERVER_MINORVERSION_NUMBER * 100 + AP_SERVER_PATCHLEVEL_NUMBER)
6 
7 /*
8  * since >=2.3.0: unixd_config -> ap_unixd_config
9  */
10 #if GRST_AP_VERSION < 20300
11 #define ap_unixd_config (unixd_config)
12 #endif
13 
14 /*
15  * since >=2.3.6: loglevel -> log.level
16  */
17 #if GRST_AP_VERSION < 20306
18 #define GRST_AP_LOGLEVEL(REQ) ((REQ)->loglevel)
19 #else
20 #define GRST_AP_LOGLEVEL(REQ) ((REQ)->log.level)
21 #endif
22 
23 /*
24  * since >=2.3.16: remote_ip -> (peer_ip ->) -> client_ip
25  */
26 #if GRST_AP_VERSION < 20316
27 #define GRST_AP_CLIENT_IP(CONN) ((CONN)->remote_ip)
28 #else
29 #define GRST_AP_CLIENT_IP(CONN) ((CONN)->client_ip)
30 #endif