mod_ap-compat.h

Go to the documentation of this file.
00001 /*
00002  * track API changes in http-devel
00003  */
00004 
00005 #define GRST_AP_VERSION (AP_SERVER_MAJORVERSION_NUMBER * 10000 + AP_SERVER_MINORVERSION_NUMBER * 100 + AP_SERVER_PATCHLEVEL_NUMBER)
00006 
00007 /*
00008  * since >=2.3.0: unixd_config -> ap_unixd_config
00009  */
00010 #if GRST_AP_VERSION < 20300
00011 #define ap_unixd_config (unixd_config)
00012 #endif
00013 
00014 /*
00015  * since >=2.3.6: loglevel -> log.level
00016  */
00017 #if GRST_AP_VERSION < 20306
00018 #define GRST_AP_LOGLEVEL(REQ) ((REQ)->loglevel)
00019 #else
00020 #define GRST_AP_LOGLEVEL(REQ) ((REQ)->log.level)
00021 #endif
00022 
00023 /*
00024  * since >=2.3.16: remote_ip -> (peer_ip ->) -> client_ip
00025  */
00026 #if GRST_AP_VERSION < 20316
00027 #define GRST_AP_CLIENT_IP(CONN) ((CONN)->remote_ip)
00028 #else
00029 #define GRST_AP_CLIENT_IP(CONN) ((CONN)->client_ip)
00030 #endif

Generated on 9 Nov 2016 by  doxygen 1.6.1