Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > 4f37b923758ceff94a2c0ccca62b4b43 > files > 122

libapr1-devel-1.1.1-1mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache Portable Runtime: apr_version.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">home</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">oden</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">RPM</a>&nbsp;/&nbsp;<a class="el" href="dir_000003.html">BUILD</a>&nbsp;/&nbsp;<a class="el" href="dir_000004.html">apr-1.1.1</a>&nbsp;/&nbsp;<a class="el" href="dir_000005.html">include</a></div>
<h1>apr_version.h</h1><a href="apr__version_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* Copyright 2000-2004 The Apache Software Foundation</span>
00002 <span class="comment"> *</span>
00003 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
00004 <span class="comment"> * you may not use this file except in compliance with the License.</span>
00005 <span class="comment"> * You may obtain a copy of the License at</span>
00006 <span class="comment"> *</span>
00007 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
00010 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
00011 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00012 <span class="comment"> * See the License for the specific language governing permissions and</span>
00013 <span class="comment"> * limitations under the License.</span>
00014 <span class="comment"> */</span>
00015 
00016 <span class="preprocessor">#ifndef APR_VERSION_H</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#define APR_VERSION_H</span>
00018 <span class="preprocessor"></span><span class="comment"></span>
00019 <span class="comment">/**</span>
00020 <span class="comment"> * @file apr_version.h</span>
00021 <span class="comment"> * @brief APR Versioning Interface</span>
00022 <span class="comment"> * </span>
00023 <span class="comment"> * APR's Version</span>
00024 <span class="comment"> *</span>
00025 <span class="comment"> * There are several different mechanisms for accessing the version. There</span>
00026 <span class="comment"> * is a string form, and a set of numbers; in addition, there are constants</span>
00027 <span class="comment"> * which can be compiled into your application, and you can query the library</span>
00028 <span class="comment"> * being used for its actual version.</span>
00029 <span class="comment"> *</span>
00030 <span class="comment"> * Note that it is possible for an application to detect that it has been</span>
00031 <span class="comment"> * compiled against a different version of APR by use of the compile-time</span>
00032 <span class="comment"> * constants and the use of the run-time query function.</span>
00033 <span class="comment"> *</span>
00034 <span class="comment"> * APR version numbering follows the guidelines specified in:</span>
00035 <span class="comment"> *</span>
00036 <span class="comment"> *     http://apr.apache.org/versioning.html</span>
00037 <span class="comment"> */</span>
00038 
00039 
00040 <span class="comment">/* The numeric compile-time version constants. These constants are the</span>
00041 <span class="comment"> * authoritative version numbers for APR. </span>
00042 <span class="comment"> */</span>
00043 <span class="comment"></span>
00044 <span class="comment">/** major version </span>
00045 <span class="comment"> * Major API changes that could cause compatibility problems for older</span>
00046 <span class="comment"> * programs such as structure size changes.  No binary compatibility is</span>
00047 <span class="comment"> * possible across a change in the major version.</span>
00048 <span class="comment"> */</span>
<a name="l00049"></a><a class="code" href="apr__version_8h.html#a0">00049</a> <span class="preprocessor">#define APR_MAJOR_VERSION       1</span>
00050 <span class="preprocessor"></span><span class="comment"></span>
00051 <span class="comment">/** minor version</span>
00052 <span class="comment"> * Minor API changes that do not cause binary compatibility problems.</span>
00053 <span class="comment"> * Reset to 0 when upgrading APR_MAJOR_VERSION</span>
00054 <span class="comment"> */</span>
<a name="l00055"></a><a class="code" href="apr__version_8h.html#a1">00055</a> <span class="preprocessor">#define APR_MINOR_VERSION       1</span>
00056 <span class="preprocessor"></span><span class="comment"></span>
00057 <span class="comment">/** patch level </span>
00058 <span class="comment"> * The Patch Level never includes API changes, simply bug fixes.</span>
00059 <span class="comment"> * Reset to 0 when upgrading APR_MINOR_VERSION</span>
00060 <span class="comment"> */</span>
<a name="l00061"></a><a class="code" href="apr__version_8h.html#a2">00061</a> <span class="preprocessor">#define APR_PATCH_VERSION       1</span>
00062 <span class="preprocessor"></span><span class="comment"></span>
00063 <span class="comment">/** </span>
00064 <span class="comment"> * The symbol APR_IS_DEV_VERSION is only defined for internal,</span>
00065 <span class="comment"> * "development" copies of APR.  It is undefined for released versions</span>
00066 <span class="comment"> * of APR.</span>
00067 <span class="comment"> */</span>
00068 <span class="comment">/* #define APR_IS_DEV_VERSION */</span>
00069 
00070 
00071 <span class="preprocessor">#if defined(APR_IS_DEV_VERSION) || defined(DOXYGEN)</span>
00072 <span class="preprocessor"></span><span class="comment">/** Internal: string form of the "is dev" flag */</span>
<a name="l00073"></a><a class="code" href="apr__version_8h.html#a3">00073</a> <span class="preprocessor">#define APR_IS_DEV_STRING "-dev"</span>
00074 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00075 <span class="preprocessor"></span><span class="preprocessor">#define APR_IS_DEV_STRING ""</span>
00076 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00077 <span class="preprocessor"></span>
00078 <span class="comment">/* APR_STRINGIFY is defined here, and also in apr_general.h, so wrap it */</span>
00079 <span class="preprocessor">#ifndef APR_STRINGIFY</span>
00080 <span class="preprocessor"></span><span class="comment">/** Properly quote a value as a string in the C preprocessor */</span>
<a name="l00081"></a><a class="code" href="apr__version_8h.html#a4">00081</a> <span class="preprocessor">#define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)</span>
00082 <span class="preprocessor"></span><span class="comment">/** Helper macro for APR_STRINGIFY */</span>
<a name="l00083"></a><a class="code" href="apr__version_8h.html#a5">00083</a> <span class="preprocessor">#define APR_STRINGIFY_HELPER(n) #n</span>
00084 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00085 <span class="preprocessor"></span><span class="comment"></span>
00086 <span class="comment">/** The formatted string of APR's version */</span>
<a name="l00087"></a><a class="code" href="apr__version_8h.html#a6">00087</a> <span class="preprocessor">#define APR_VERSION_STRING \</span>
00088 <span class="preprocessor">     APR_STRINGIFY(APR_MAJOR_VERSION) "." \</span>
00089 <span class="preprocessor">     APR_STRINGIFY(APR_MINOR_VERSION) "." \</span>
00090 <span class="preprocessor">     APR_STRINGIFY(APR_PATCH_VERSION) \</span>
00091 <span class="preprocessor">     APR_IS_DEV_STRING</span>
00092 <span class="preprocessor"></span><span class="comment"></span>
00093 <span class="comment">/** An alternative formatted string of APR's version */</span>
00094 <span class="comment">/* macro for Win32 .rc files using numeric csv representation */</span>
<a name="l00095"></a><a class="code" href="apr__version_8h.html#a7">00095</a> <span class="preprocessor">#define APR_VERSION_STRING_CSV APR_MAJOR_VERSION ##, \</span>
00096 <span class="preprocessor">                             ##APR_MINOR_VERSION ##, \</span>
00097 <span class="preprocessor">                             ##APR_PATCH_VERSION</span>
00098 <span class="preprocessor"></span>
00099 
00100 <span class="preprocessor">#ifndef APR_VERSION_ONLY</span>
00101 <span class="preprocessor"></span>
00102 <span class="comment">/* The C language API to access the version at run time, </span>
00103 <span class="comment"> * as opposed to compile time.  APR_VERSION_ONLY may be defined </span>
00104 <span class="comment"> * externally when preprocessing apr_version.h to obtain strictly </span>
00105 <span class="comment"> * the C Preprocessor macro declarations.</span>
00106 <span class="comment"> */</span>
00107 
00108 <span class="preprocessor">#include "<a class="code" href="apr_8h.html">apr.h</a>"</span>
00109 
00110 <span class="preprocessor">#ifdef __cplusplus</span>
00111 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00112 <span class="preprocessor">#endif</span>
00113 <span class="preprocessor"></span><span class="comment"></span>
00114 <span class="comment">/** </span>
00115 <span class="comment"> * The numeric version information is broken out into fields within this </span>
00116 <span class="comment"> * structure. </span>
00117 <span class="comment"> */</span>
<a name="l00118"></a><a class="code" href="structapr__version__t.html">00118</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00119"></a><a class="code" href="structapr__version__t.html#o0">00119</a>     <span class="keywordtype">int</span> major;      <span class="comment">/**&lt; major number */</span>
<a name="l00120"></a><a class="code" href="structapr__version__t.html#o1">00120</a>     <span class="keywordtype">int</span> minor;      <span class="comment">/**&lt; minor number */</span>
<a name="l00121"></a><a class="code" href="structapr__version__t.html#o2">00121</a>     <span class="keywordtype">int</span> patch;      <span class="comment">/**&lt; patch number */</span>
<a name="l00122"></a><a class="code" href="structapr__version__t.html#o3">00122</a>     <span class="keywordtype">int</span> is_dev;     <span class="comment">/**&lt; is development (1 or 0) */</span>
00123 } <a class="code" href="structapr__version__t.html">apr_version_t</a>;
00124 <span class="comment"></span>
00125 <span class="comment">/**</span>
00126 <span class="comment"> * Return APR's version information information in a numeric form.</span>
00127 <span class="comment"> *</span>
00128 <span class="comment"> *  @param pvsn Pointer to a version structure for returning the version</span>
00129 <span class="comment"> *              information.</span>
00130 <span class="comment"> */</span>
00131 <a class="code" href="group__apr__platform.html#ga123">APR_DECLARE</a>(<span class="keywordtype">void</span>) apr_version(<a class="code" href="structapr__version__t.html">apr_version_t</a> *pvsn);
00132 <span class="comment"></span>
00133 <span class="comment">/** Return APR's version information as a string. */</span>
00134 APR_DECLARE(const <span class="keywordtype">char</span> *) apr_version_string(<span class="keywordtype">void</span>);
00135 
00136 #ifdef __cplusplus
00137 }
00138 #endif
00139 
00140 #endif <span class="comment">/* ndef APR_VERSION_ONLY */</span>
00141 
00142 #endif <span class="comment">/* ndef APR_VERSION_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Mar 20 19:52:26 2005 for Apache Portable Runtime by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>