apr_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 APR_VERSION_H
00018 #define APR_VERSION_H
00019 
00020 #include "apr.h"
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00046 /* The numeric compile-time version constants. These constants are the
00047  * authoritative version numbers for APR. 
00048  */
00049 
00055 #define APR_MAJOR_VERSION       0
00056 
00061 #define APR_MINOR_VERSION       9
00062 
00064 #define APR_PATCH_VERSION      17
00065 
00070 /* #undef APR_IS_DEV_VERSION */
00071 
00072 
00074 #define APR_VERSION_STRING \
00075      APR_STRINGIFY(APR_MAJOR_VERSION) "." \
00076      APR_STRINGIFY(APR_MINOR_VERSION) "." \
00077      APR_STRINGIFY(APR_PATCH_VERSION) \
00078      APR_IS_DEV_STRING
00079 
00080 
00085 typedef struct {
00086     int major;      
00087     int minor;      
00088     int patch;      
00089     int is_dev;     
00090 } apr_version_t;
00091 
00098 APR_DECLARE(void) apr_version(apr_version_t *pvsn);
00099 
00101 APR_DECLARE(const char *) apr_version_string(void);
00102 
00103 
00105 #ifdef APR_IS_DEV_VERSION
00106 #define APR_IS_DEV_STRING "-dev"
00107 #else
00108 #define APR_IS_DEV_STRING ""
00109 #endif
00110 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif /* APR_VERSION_H */

Generated on Mon Nov 26 11:47:26 2007 for Apache Portable Runtime by  doxygen 1.5.2