Apache Portable Runtime
apu_version.h
Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef APU_VERSION_H
00018 #define APU_VERSION_H
00019 
00020 /**
00021  * @file apu_version.h
00022  * @brief APR-util Versioning Interface
00023  * 
00024  * APR-util's Version
00025  *
00026  * There are several different mechanisms for accessing the version. There
00027  * is a string form, and a set of numbers; in addition, there are constants
00028  * which can be compiled into your application, and you can query the library
00029  * being used for its actual version.
00030  *
00031  * Note that it is possible for an application to detect that it has been
00032  * compiled against a different version of APU by use of the compile-time
00033  * constants and the use of the run-time query function.
00034  *
00035  * APU version numbering follows the guidelines specified in:
00036  *
00037  *     http://apr.apache.org/versioning.html
00038  */
00039 
00040 
00041 #include "apr_version.h"
00042 
00043 /* The numeric compile-time version constants. These constants are the
00044  * authoritative version numbers for APU. This file remains as strictly
00045  * a compatibility stub.
00046  */
00047 
00048 /** major version 
00049  * Major API changes that could cause compatibility problems for older
00050  * programs such as structure size changes.  No binary compatibility is
00051  * possible across a change in the major version.
00052  * In 2.0, for legacy support, this is an identity of the APR version.
00053  * @deprecated @see APR_MAJOR_VERSION
00054  */
00055 #define APU_MAJOR_VERSION       APR_MAJOR_VERSION
00056 
00057 /** minor version
00058  * Minor API changes that do not cause binary compatibility problems.
00059  * Reset to 0 when upgrading APU_MAJOR_VERSION
00060  * In 2.0, for legacy support, this is an identity of the APR version.
00061  * @deprecated @see APR_MINOR_VERSION
00062  */
00063 #define APU_MINOR_VERSION       APR_MINOR_VERSION
00064 
00065 /** patch level 
00066  * The Patch Level never includes API changes, simply bug fixes.
00067  * Reset to 0 when upgrading APR_MINOR_VERSION
00068  * In 2.0, for legacy support, this is an identity of the APR version.
00069  * @deprecated @see APR_PATCH_VERSION
00070  */
00071 #define APU_PATCH_VERSION       APR_PATCH_VERSION
00072 
00073 /** 
00074  * The symbol APU_IS_DEV_VERSION is only defined for internal,
00075  * "development" copies of APU.  It is undefined for released versions
00076  * of APU.
00077  * In 2.0, for legacy support, this is an identity of the APR version.
00078  * @deprecated @see APR_IS_DEV_VERSION
00079  */
00080 #ifdef APR_IS_DEV_VERSION
00081 #  define APU_IS_DEV_VERSION
00082 #endif
00083 
00084 #if defined(APU_IS_DEV_VERSION) || defined(DOXYGEN)
00085 /** Internal: string form of the "is dev" flag */
00086 #define APU_IS_DEV_STRING "-dev"
00087 #else
00088 #define APU_IS_DEV_STRING ""
00089 #endif
00090 
00091 #endif /* ndef APU_VERSION_H */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines