home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 May / Gamestar_62_2004-05_dvd.iso / Programy / apache_2.0.48-win32-x86-no_ssl.msi / Data.Cab / F251790_apu_version.h < prev    next >
C/C++ Source or Header  |  2003-09-25  |  5KB  |  144 lines

  1. /* ====================================================================
  2.  * The Apache Software License, Version 1.1
  3.  *
  4.  * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
  5.  * reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  *
  11.  * 1. Redistributions of source code must retain the above copyright
  12.  *    notice, this list of conditions and the following disclaimer.
  13.  *
  14.  * 2. Redistributions in binary form must reproduce the above copyright
  15.  *    notice, this list of conditions and the following disclaimer in
  16.  *    the documentation and/or other materials provided with the
  17.  *    distribution.
  18.  *
  19.  * 3. The end-user documentation included with the redistribution,
  20.  *    if any, must include the following acknowledgment:
  21.  *       "This product includes software developed by the
  22.  *        Apache Software Foundation (http://www.apache.org/)."
  23.  *    Alternately, this acknowledgment may appear in the software itself,
  24.  *    if and wherever such third-party acknowledgments normally appear.
  25.  *
  26.  * 4. The names "Apache" and "Apache Software Foundation" must
  27.  *    not be used to endorse or promote products derived from this
  28.  *    software without prior written permission. For written
  29.  *    permission, please contact apache@apache.org.
  30.  *
  31.  * 5. Products derived from this software may not be called "Apache",
  32.  *    nor may "Apache" appear in their name, without prior written
  33.  *    permission of the Apache Software Foundation.
  34.  *
  35.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  36.  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  37.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  38.  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  39.  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  40.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  41.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  42.  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  43.  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  44.  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  45.  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  46.  * SUCH DAMAGE.
  47.  * ====================================================================
  48.  *
  49.  * This software consists of voluntary contributions made by many
  50.  * individuals on behalf of the Apache Software Foundation.  For more
  51.  * information on the Apache Software Foundation, please see
  52.  * <http://www.apache.org/>.
  53.  */
  54.  
  55. #ifndef APU_VERSION_H
  56. #define APU_VERSION_H
  57.  
  58. #include "apr_version.h"
  59.  
  60. #include "apu.h"
  61.  
  62. #ifdef __cplusplus
  63. extern "C" {
  64. #endif
  65.  
  66. /**
  67.  * @file apu_version.h
  68.  * @brief 
  69.  * 
  70.  * APR-util's Version
  71.  *
  72.  * There are several different mechanisms for accessing the version. There
  73.  * is a string form, and a set of numbers; in addition, there are constants
  74.  * which can be compiled into your application, and you can query the library
  75.  * being used for its actual version.
  76.  *
  77.  * Note that it is possible for an application to detect that it has been
  78.  * compiled against a different version of APU by use of the compile-time
  79.  * constants and the use of the run-time query function.
  80.  *
  81.  * APU version numbering follows the guidelines specified in:
  82.  *
  83.  *     http://apr.apache.org/versioning.html
  84.  */
  85.  
  86. /* The numeric compile-time version constants. These constants are the
  87.  * authoritative version numbers for APU. 
  88.  */
  89.  
  90. /** major version 
  91.  * Major API changes that could cause compatibility problems for older
  92.  * programs such as structure size changes.  No binary compatibility is
  93.  * possible across a change in the major version.
  94.  */
  95. #define APU_MAJOR_VERSION       0
  96.  
  97. /** 
  98.  * Minor API changes that do not cause binary compatibility problems.
  99.  * Should be reset to 0 when upgrading APU_MAJOR_VERSION
  100.  */
  101. #define APU_MINOR_VERSION       9
  102.  
  103. /** patch level */
  104. #define APU_PATCH_VERSION       5
  105.  
  106. /** 
  107.  *  This symbol is defined for internal, "development" copies of APU. This
  108.  *  symbol will be #undef'd for releases. 
  109.  */
  110. #define APU_IS_DEV_VERSION
  111.  
  112.  
  113. /** The formatted string of APU's version */
  114. #define APU_VERSION_STRING \
  115.      APR_STRINGIFY(APU_MAJOR_VERSION) "." \
  116.      APR_STRINGIFY(APU_MINOR_VERSION) "." \
  117.      APR_STRINGIFY(APU_PATCH_VERSION) \
  118.      APU_IS_DEV_STRING
  119.  
  120. /**
  121.  * Return APR-util's version information information in a numeric form.
  122.  *
  123.  *  @param pvsn Pointer to a version structure for returning the version
  124.  *              information.
  125.  */
  126. APU_DECLARE(void) apu_version(apr_version_t *pvsn);
  127.  
  128. /** Return APU's version information as a string. */
  129. APU_DECLARE(const char *) apu_version_string(void);
  130.  
  131.  
  132. /** Internal: string form of the "is dev" flag */
  133. #ifdef APU_IS_DEV_VERSION
  134. #define APU_IS_DEV_STRING "-dev"
  135. #else
  136. #define APU_IS_DEV_STRING ""
  137. #endif
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif
  142.  
  143. #endif /* APU_VERSION_H */
  144.