ap_release.h revision de7f5c1fd2707bfe56e2d0f0aeeb23f23fd738a8
cac0964f155bdb6daba7ecf5628ed2fec3763275orlikowski/* Licensed to the Apache Software Foundation (ASF) under one or more
7238b345c345cb79d81cf01fedc311bff001444ctrawick * contributor license agreements. See the NOTICE file distributed with
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * this work for additional information regarding copyright ownership.
d8ed1028025480c672d9dc7266b54ac853bbb999trawick * The ASF licenses this file to You under the Apache License, Version 2.0
d8ed1028025480c672d9dc7266b54ac853bbb999trawick * (the "License"); you may not use this file except in compliance with
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna * the License. You may obtain a copy of the License at
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding *
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * http://www.apache.org/licenses/LICENSE-2.0
c8d61b81105661b9ba169482e418929fcf0cfec4trawick *
87a87c1e1afc7eb004bc10594a9de98411866a20jerenkrantz * Unless required by applicable law or agreed to in writing, software
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * distributed under the License is distributed on an "AS IS" BASIS,
1ddf25b77b03f7f4fd7a7676b62755da90cd3e0crbb * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * See the License for the specific language governing permissions and
7aae0c3ef8e7f18f57e2712815c7b48358e5ff68rbb * limitations under the License.
4b34d6a5b70303010612df6c87da3ee91ae86078rbb */
4b34d6a5b70303010612df6c87da3ee91ae86078rbb
4b34d6a5b70303010612df6c87da3ee91ae86078rbb/**
4b34d6a5b70303010612df6c87da3ee91ae86078rbb * @file ap_release.h
bcf78e5a1193beb9a93b9e0199d6a10e8937b244rbb * @brief Version Release defines
d66260b801a953237f71d6a4b26d8fd9ea419e3brbb */
4b34d6a5b70303010612df6c87da3ee91ae86078rbb
4b34d6a5b70303010612df6c87da3ee91ae86078rbb#ifndef AP_RELEASE_H
d66260b801a953237f71d6a4b26d8fd9ea419e3brbb#define AP_RELEASE_H
d66260b801a953237f71d6a4b26d8fd9ea419e3brbb
d472f67198d6b15dd1270136f180cca9c9263243trawick#include "apr_general.h" /* stringify */
4b34d6a5b70303010612df6c87da3ee91ae86078rbb
4b34d6a5b70303010612df6c87da3ee91ae86078rbb#define AP_SERVER_COPYRIGHT \
4b34d6a5b70303010612df6c87da3ee91ae86078rbb "Copyright 2011 The Apache Software Foundation."
d472f67198d6b15dd1270136f180cca9c9263243trawick
d472f67198d6b15dd1270136f180cca9c9263243trawick/*
7aae0c3ef8e7f18f57e2712815c7b48358e5ff68rbb * The below defines the base string of the Server: header. Additional
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * tokens can be added via the ap_add_version_component() API call.
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb *
8a3a703eae0e35f674b189181609545c6fc77a09rbb * The tokens are listed in order of their significance for identifying the
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * application.
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb *
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * "Product tokens should be short and to the point -- use of them for
8a3a703eae0e35f674b189181609545c6fc77a09rbb * advertizing or other non-essential information is explicitly forbidden."
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb *
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb * Example: "Apache/1.1.0 MrWidget/0.1-alpha"
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb */
8a3a703eae0e35f674b189181609545c6fc77a09rbb#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb#define AP_SERVER_BASEPROJECT "Apache HTTP Server"
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb#define AP_SERVER_BASEPRODUCT "Apache"
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb
8a3a703eae0e35f674b189181609545c6fc77a09rbb#define AP_SERVER_MAJORVERSION_NUMBER 2
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb#define AP_SERVER_MINORVERSION_NUMBER 3
7e27b1d417fa94db6e8c798a36c68de3a22f3937ianh#define AP_SERVER_PATCHLEVEL_NUMBER 11
7e27b1d417fa94db6e8c798a36c68de3a22f3937ianh#define AP_SERVER_DEVBUILD_BOOLEAN 0
7e27b1d417fa94db6e8c798a36c68de3a22f3937ianh
7e27b1d417fa94db6e8c798a36c68de3a22f3937ianh#if AP_SERVER_DEVBUILD_BOOLEAN
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb#define AP_SERVER_ADD_STRING "-dev"
164141857c02667118df04b14fe536d1756f0ef4jorton#else
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb#define AP_SERVER_ADD_STRING ""
164141857c02667118df04b14fe536d1756f0ef4jorton#endif
05b7ad99e5d197b06c761fef0e06a44e353cbc54rbb
cee52fb06eb61191ce5d495abda58a75a9bb1c4fcoar/* keep old macros as well */
cee52fb06eb61191ce5d495abda58a75a9bb1c4fcoar#define AP_SERVER_MAJORVERSION APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
cee52fb06eb61191ce5d495abda58a75a9bb1c4fcoar#define AP_SERVER_MINORVERSION APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
cee52fb06eb61191ce5d495abda58a75a9bb1c4fcoar#define AP_SERVER_PATCHLEVEL APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
bb7f455a6c49400b3dfcb3dfb84f9c3a32947a08rbb AP_SERVER_ADD_STRING
bb7f455a6c49400b3dfcb3dfb84f9c3a32947a08rbb
e3c1e71cb730f73117078f976452574f9a3c840cjorton#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
bb7f455a6c49400b3dfcb3dfb84f9c3a32947a08rbb#define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
9fe74ffcdea85800f04a7222f716f78ae60cce51jerenkrantz#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
9fe74ffcdea85800f04a7222f716f78ae60cce51jerenkrantz#define AP_SERVER_VERSION AP_SERVER_BASEVERSION
9fe74ffcdea85800f04a7222f716f78ae60cce51jerenkrantz
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna/* macro for Win32 .rc files using numeric csv representation */
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna#define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER, \
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna AP_SERVER_MINORVERSION_NUMBER, \
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna AP_SERVER_PATCHLEVEL_NUMBER
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna
#endif