Apache Portable Runtime
apu_version.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef APU_VERSION_H
18 #define APU_VERSION_H
19 
20 /**
21  * @file apu_version.h
22  * @brief APR-util Versioning Interface
23  *
24  * APR-util's Version
25  *
26  * There are several different mechanisms for accessing the version. There
27  * is a string form, and a set of numbers; in addition, there are constants
28  * which can be compiled into your application, and you can query the library
29  * being used for its actual version.
30  *
31  * Note that it is possible for an application to detect that it has been
32  * compiled against a different version of APU by use of the compile-time
33  * constants and the use of the run-time query function.
34  *
35  * APU version numbering follows the guidelines specified in:
36  *
37  * http://apr.apache.org/versioning.html
38  */
39 
40 
41 #include "apr_version.h"
42 
43 /* The numeric compile-time version constants. These constants are the
44  * authoritative version numbers for APU. This file remains as strictly
45  * a compatibility stub.
46  */
47 
48 /** major version
49  * Major API changes that could cause compatibility problems for older
50  * programs such as structure size changes. No binary compatibility is
51  * possible across a change in the major version.
52  * In 2.0, for legacy support, this is an identity of the APR version.
53  * @deprecated @see APR_MAJOR_VERSION
54  */
55 #define APU_MAJOR_VERSION APR_MAJOR_VERSION
56 
57 /** minor version
58  * Minor API changes that do not cause binary compatibility problems.
59  * Reset to 0 when upgrading APU_MAJOR_VERSION
60  * In 2.0, for legacy support, this is an identity of the APR version.
61  * @deprecated @see APR_MINOR_VERSION
62  */
63 #define APU_MINOR_VERSION APR_MINOR_VERSION
64 
65 /** patch level
66  * The Patch Level never includes API changes, simply bug fixes.
67  * Reset to 0 when upgrading APR_MINOR_VERSION
68  * In 2.0, for legacy support, this is an identity of the APR version.
69  * @deprecated @see APR_PATCH_VERSION
70  */
71 #define APU_PATCH_VERSION APR_PATCH_VERSION
72 
73 /**
74  * The symbol APU_IS_DEV_VERSION is only defined for internal,
75  * "development" copies of APU. It is undefined for released versions
76  * of APU.
77  * In 2.0, for legacy support, this is an identity of the APR version.
78  * @deprecated @see APR_IS_DEV_VERSION
79  */
80 #ifdef APR_IS_DEV_VERSION
81 # define APU_IS_DEV_VERSION
82 #endif
83 
84 /** Internal: string form of the "is dev" flag */
85 #define APU_IS_DEV_STRING APR_IS_DEV_STRING
86 
87 #endif /* ndef APU_VERSION_H */
APR Versioning Interface.