⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apr__version_8h-source.html

📁 apr函数库使用手册
💻 HTML
字号:
<!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.7 -->
<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>
<h1>apr_version.h</h1><a href="apr__version_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as</span>
00002 <span class="comment"> * applicable.</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
00005 <span class="comment"> * you may not use this file except in compliance with the License.</span>
00006 <span class="comment"> * You may obtain a copy of the License at</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
00014 <span class="comment"> * limitations under the License.</span>
00015 <span class="comment"> */</span>
00016 
00017 <span class="preprocessor">#ifndef APR_VERSION_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define APR_VERSION_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include "apr.h"</span>
00021 
00022 <span class="preprocessor">#ifdef __cplusplus</span>
00023 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00024 <span class="preprocessor">#endif</span>
00025 <span class="preprocessor"></span><span class="comment"></span>
00026 <span class="comment">/**</span>
00027 <span class="comment"> * @file apr_version.h</span>
00028 <span class="comment"> * @brief APR Versioning Interface</span>
00029 <span class="comment"> * </span>
00030 <span class="comment"> * APR's Version</span>
00031 <span class="comment"> *</span>
00032 <span class="comment"> * There are several different mechanisms for accessing the version. There</span>
00033 <span class="comment"> * is a string form, and a set of numbers; in addition, there are constants</span>
00034 <span class="comment"> * which can be compiled into your application, and you can query the library</span>
00035 <span class="comment"> * being used for its actual version.</span>
00036 <span class="comment"> *</span>
00037 <span class="comment"> * Note that it is possible for an application to detect that it has been</span>
00038 <span class="comment"> * compiled against a different version of APR by use of the compile-time</span>
00039 <span class="comment"> * constants and the use of the run-time query function.</span>
00040 <span class="comment"> *</span>
00041 <span class="comment"> * APR version numbering follows the guidelines specified in:</span>
00042 <span class="comment"> *</span>
00043 <span class="comment"> *     http://apr.apache.org/versioning.html</span>
00044 <span class="comment"> */</span>
00045 
00046 <span class="comment">/* The numeric compile-time version constants. These constants are the</span>
00047 <span class="comment"> * authoritative version numbers for APR. </span>
00048 <span class="comment"> */</span>
00049 <span class="comment"></span>
00050 <span class="comment">/** major version </span>
00051 <span class="comment"> * Major API changes that could cause compatibility problems for older</span>
00052 <span class="comment"> * programs such as structure size changes.  No binary compatibility is</span>
00053 <span class="comment"> * possible across a change in the major version.</span>
00054 <span class="comment"> */</span>
<a name="l00055"></a><a class="code" href="apr__version_8h.html#a0">00055</a> <span class="preprocessor">#define APR_MAJOR_VERSION       1</span>
00056 <span class="preprocessor"></span><span class="comment"></span>
00057 <span class="comment">/** </span>
00058 <span class="comment"> * Minor API changes that do not cause binary compatibility problems.</span>
00059 <span class="comment"> * Should be reset to 0 when upgrading APR_MAJOR_VERSION</span>
00060 <span class="comment"> */</span>
<a name="l00061"></a><a class="code" href="apr__version_8h.html#a1">00061</a> <span class="preprocessor">#define APR_MINOR_VERSION       2</span>
00062 <span class="preprocessor"></span><span class="comment"></span>
00063 <span class="comment">/** patch level */</span>
<a name="l00064"></a><a class="code" href="apr__version_8h.html#a2">00064</a> <span class="preprocessor">#define APR_PATCH_VERSION       0</span>
00065 <span class="preprocessor"></span><span class="comment"></span>
00066 <span class="comment">/**</span>
00067 <span class="comment"> * This symbol is defined for internal, "development" copies of APR.</span>
00068 <span class="comment"> * This symbol should be #undef'd for releases.</span>
00069 <span class="comment"> */</span>
<a name="l00070"></a><a class="code" href="apr__version_8h.html#a3">00070</a> <span class="preprocessor">#define APR_IS_DEV_VERSION</span>
00071 <span class="preprocessor"></span><span class="comment"></span>
00072 <span class="comment">/** The formatted string of APR's version */</span>
<a name="l00073"></a><a class="code" href="apr__version_8h.html#a4">00073</a> <span class="preprocessor">#define APR_VERSION_STRING \</span>
00074 <span class="preprocessor">     APR_STRINGIFY(APR_MAJOR_VERSION) "." \</span>
00075 <span class="preprocessor">     APR_STRINGIFY(APR_MINOR_VERSION) "." \</span>
00076 <span class="preprocessor">     APR_STRINGIFY(APR_PATCH_VERSION) \</span>
00077 <span class="preprocessor">     APR_IS_DEV_STRING</span>
00078 <span class="preprocessor"></span>
00079 <span class="comment"></span>
00080 <span class="comment">/** </span>
00081 <span class="comment"> * The numeric version information is broken out into fields within this </span>
00082 <span class="comment"> * structure. </span>
00083 <span class="comment"> */</span>
<a name="l00084"></a><a class="code" href="structapr__version__t.html">00084</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00085"></a><a class="code" href="structapr__version__t.html#o0">00085</a>     <span class="keywordtype">int</span> major;      <span class="comment">/**&lt; major number */</span>
<a name="l00086"></a><a class="code" href="structapr__version__t.html#o1">00086</a>     <span class="keywordtype">int</span> minor;      <span class="comment">/**&lt; minor number */</span>
<a name="l00087"></a><a class="code" href="structapr__version__t.html#o2">00087</a>     <span class="keywordtype">int</span> patch;      <span class="comment">/**&lt; patch number */</span>
<a name="l00088"></a><a class="code" href="structapr__version__t.html#o3">00088</a>     <span class="keywordtype">int</span> is_dev;     <span class="comment">/**&lt; is development (1 or 0) */</span>
00089 } <a class="code" href="structapr__version__t.html">apr_version_t</a>;
00090 <span class="comment"></span>
00091 <span class="comment">/**</span>
00092 <span class="comment"> * Return APR's version information information in a numeric form.</span>
00093 <span class="comment"> *</span>
00094 <span class="comment"> *  @param pvsn Pointer to a version structure for returning the version</span>
00095 <span class="comment"> *              information.</span>
00096 <span class="comment"> */</span>
00097 APR_DECLARE(<span class="keywordtype">void</span>) apr_version(<a class="code" href="structapr__version__t.html">apr_version_t</a> *pvsn);
00098 <span class="comment"></span>
00099 <span class="comment">/** Return APR's version information as a string. */</span>
00100 APR_DECLARE(const <span class="keywordtype">char</span> *) apr_version_string(<span class="keywordtype">void</span>);
00101 
00102 <span class="comment"></span>
00103 <span class="comment">/** Internal: string form of the "is dev" flag */</span>
00104 #ifdef APR_IS_DEV_VERSION
<a name="l00105"></a><a class="code" href="apr__version_8h.html#a5">00105</a> #define APR_IS_DEV_STRING "-dev"
00106 #else
00107 #define APR_IS_DEV_STRING ""
00108 #endif
00109 
00110 #ifdef __cplusplus
00111 }
00112 #endif
00113 
00114 #endif <span class="comment">/* APR_VERSION_H */</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 7 13:18:25 2005 for Apache Portable Runtime by
<a href="../../../www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -