apreq_version.h
Go to the documentation of this file.
1 /*
2 ** Licensed to the Apache Software Foundation (ASF) under one or more
3 ** contributor license agreements. See the NOTICE file distributed with
4 ** this work for additional information regarding copyright ownership.
5 ** The ASF licenses this file to You under the Apache License, Version 2.0
6 ** (the "License"); you may not use this file except in compliance with
7 ** the License. You may obtain a copy of the License at
8 **
9 ** http://www.apache.org/licenses/LICENSE-2.0
10 **
11 ** Unless required by applicable law or agreed to in writing, software
12 ** distributed under the License is distributed on an "AS IS" BASIS,
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ** See the License for the specific language governing permissions and
15 ** limitations under the License.
16 */
17 
18 #ifndef APREQ_VERSION_H
19 #define APREQ_VERSION_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include "apr_version.h"
26 #include "apreq.h"
27 
47 /* The numeric compile-time version constants. These constants are the
48  * authoritative version numbers for libapreq.
49  */
50 
56 #define APREQ_MAJOR_VERSION 2
57 
62 #define APREQ_MINOR_VERSION 8
63 
65 #define APREQ_PATCH_VERSION 1
66 
71 #define APREQ_IS_DEV_VERSION
72 
73 
75 #define APREQ_VERSION_STRING \
76  APR_STRINGIFY(APREQ_MAJOR_VERSION) "." \
77  APR_STRINGIFY(APREQ_MINOR_VERSION) "." \
78  APR_STRINGIFY(APREQ_PATCH_VERSION) \
79  APREQ_IS_DEV_STRING
80 
88 
90 APREQ_DECLARE(const char *) apreq_version_string(void);
91 
92 
94 #ifdef APREQ_IS_DEV_VERSION
95 #define APREQ_IS_DEV_STRING "-dev"
96 #else
97 #define APREQ_IS_DEV_STRING ""
98 #endif
99 
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif /* APREQ_VERSION_H */
Main header file...
#define APREQ_DECLARE(d)
Definition: apreq.h:50
const char * apreq_version_string(void)
void apreq_version(apr_version_t *pvsn)