apr__version_8h.html
来自「apr函数库使用手册」· HTML 代码 · 共 256 行
HTML
256 行
<!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 File Reference</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 Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>apr_version.h File Reference</h1>APR Versioning Interface.
<a href="#_details">More...</a>
<p>
<code>#include "apr.h"</code><br>
<p>
<a href="apr__version_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structapr__version__t.html">apr_version_t</a></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a0">APR_MAJOR_VERSION</a> 1</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a1">APR_MINOR_VERSION</a> 2</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a2">APR_PATCH_VERSION</a> 0</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a3">APR_IS_DEV_VERSION</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a4">APR_VERSION_STRING</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a5">APR_IS_DEV_STRING</a> "-dev"</td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a6">apr_version</a> (<a class="el" href="structapr__version__t.html">apr_version_t</a> *pvsn)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const char * </td><td class="memItemRight" valign=bottom><a class="el" href="apr__version_8h.html#a7">apr_version_string</a> (void)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
APR Versioning Interface.
<p>
APR's Version<p>
There are several different mechanisms for accessing the version. There is a string form, and a set of numbers; in addition, there are constants which can be compiled into your application, and you can query the library being used for its actual version.<p>
Note that it is possible for an application to detect that it has been compiled against a different version of APR by use of the compile-time constants and the use of the run-time query function.<p>
APR version numbering follows the guidelines specified in:<p>
<a href="../../versioning.html">http://apr.apache.org/versioning.html</a><hr><h2>Define Documentation</h2>
<a class="anchor" name="a5" doxytag="apr_version.h::APR_IS_DEV_STRING" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_IS_DEV_STRING "-dev" </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Internal: string form of the "is dev" flag </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="apr_version.h::APR_IS_DEV_VERSION" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_IS_DEV_VERSION </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This symbol is defined for internal, "development" copies of APR. This symbol should be #undef'd for releases. </td>
</tr>
</table>
<a class="anchor" name="a0" doxytag="apr_version.h::APR_MAJOR_VERSION" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_MAJOR_VERSION 1 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
major version Major API changes that could cause compatibility problems for older programs such as structure size changes. No binary compatibility is possible across a change in the major version. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="apr_version.h::APR_MINOR_VERSION" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_MINOR_VERSION 2 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Minor API changes that do not cause binary compatibility problems. Should be reset to 0 when upgrading APR_MAJOR_VERSION </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="apr_version.h::APR_PATCH_VERSION" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_PATCH_VERSION 0 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
patch level </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="apr_version.h::APR_VERSION_STRING" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_VERSION_STRING </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<b>Value:</b><pre class="fragment"><div><a class="code" href="group__apr__general.html#ga12">APR_STRINGIFY</a>(APR_MAJOR_VERSION) <span class="stringliteral">"."</span> \
<a class="code" href="group__apr__general.html#ga12">APR_STRINGIFY</a>(APR_MINOR_VERSION) <span class="stringliteral">"."</span> \
<a class="code" href="group__apr__general.html#ga12">APR_STRINGIFY</a>(APR_PATCH_VERSION) \
<a class="code" href="apr__version_8h.html#a5">APR_IS_DEV_STRING</a>
</div></pre>The formatted string of APR's version </td>
</tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a6" doxytag="apr_version.h::apr_version" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void apr_version </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structapr__version__t.html">apr_version_t</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>pvsn</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Return APR's version information information in a numeric form.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>pvsn</em> </td><td>Pointer to a version structure for returning the version information. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="apr_version.h::apr_version_string" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const char* apr_version_string </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Return APR's version information as a string. </td>
</tr>
</table>
<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 + =
减小字号Ctrl + -
显示快捷键?