mirror of
https://github.com/apache/httpd.git
synced 2025-08-03 16:33:59 +00:00
Add core version query function ap_get_server_revision and
accompanying ap_version_t structure (minor MMN bump). The function is similar to apr_version() and allow for exact querying of the core revision level. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -59,6 +59,8 @@
|
||||
#ifndef AP_RELEASE_H
|
||||
#define AP_RELEASE_H
|
||||
|
||||
#include "apr_general.h" /* stringify */
|
||||
|
||||
/*
|
||||
* The below defines the base string of the Server: header. Additional
|
||||
* tokens can be added via the ap_add_version_component() API call.
|
||||
@ -73,9 +75,18 @@
|
||||
*/
|
||||
#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
|
||||
#define AP_SERVER_BASEPRODUCT "Apache"
|
||||
#define AP_SERVER_MAJORVERSION "2"
|
||||
#define AP_SERVER_MINORVERSION "1"
|
||||
#define AP_SERVER_PATCHLEVEL "0-dev"
|
||||
|
||||
#define AP_SERVER_MAJORVERSION_NUMBER 2
|
||||
#define AP_SERVER_MINORVERSION_NUMBER 1
|
||||
#define AP_SERVER_PATCHLEVEL_NUMBER 0
|
||||
#define AP_SERVER_ADD_STRING "-dev"
|
||||
|
||||
/* keep old macros as well */
|
||||
#define AP_SERVER_MAJORVERSION APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
|
||||
#define AP_SERVER_MINORVERSION APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
|
||||
#define AP_SERVER_PATCHLEVEL APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
|
||||
AP_SERVER_ADD_STRING
|
||||
|
||||
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
|
||||
#define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
|
||||
#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
|
||||
|
Reference in New Issue
Block a user