Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > bdcd72668be70f58bf0aa7c2102b0734 > files > 80

lib64apr-util-devel-1.2.12-4mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Apache Portable Runtime Utility Library: include/apr_reslist.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>include/apr_reslist.h</h1><a href="apr__reslist_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00002"></a>00002 <span class="comment"> * contributor license agreements.  See the NOTICE file distributed with</span>
<a name="l00003"></a>00003 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00004"></a>00004 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00005"></a>00005 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00006"></a>00006 <span class="comment"> * the License.  You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef APR_RESLIST_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define APR_RESLIST_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "apr.h"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "apu.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "apr_pools.h"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "apr_errno.h"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "apr_time.h"</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#if APR_HAS_THREADS</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00041"></a>00041 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00042"></a>00042 
<a name="l00044"></a><a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">00044</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> <a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a>;
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="comment">/* Generic constructor called by resource list when it needs to create a</span>
<a name="l00047"></a>00047 <span class="comment"> * resource.</span>
<a name="l00048"></a>00048 <span class="comment"> * @param resource opaque resource</span>
<a name="l00049"></a>00049 <span class="comment"> * @param param flags</span>
<a name="l00050"></a>00050 <span class="comment"> * @param pool  Pool</span>
<a name="l00051"></a>00051 <span class="comment"> */</span>
<a name="l00052"></a>00052 <span class="keyword">typedef</span> apr_status_t (*apr_reslist_constructor)(<span class="keywordtype">void</span> **resource, <span class="keywordtype">void</span> *params,
<a name="l00053"></a>00053                                                 apr_pool_t *pool);
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="comment">/* Generic destructor called by resource list when it needs to destroy a</span>
<a name="l00056"></a>00056 <span class="comment"> * resource.</span>
<a name="l00057"></a>00057 <span class="comment"> * @param resource opaque resource</span>
<a name="l00058"></a>00058 <span class="comment"> * @param param flags</span>
<a name="l00059"></a>00059 <span class="comment"> * @param pool  Pool</span>
<a name="l00060"></a>00060 <span class="comment"> */</span>
<a name="l00061"></a>00061 <span class="keyword">typedef</span> apr_status_t (*apr_reslist_destructor)(<span class="keywordtype">void</span> *resource, <span class="keywordtype">void</span> *params,
<a name="l00062"></a>00062                                                apr_pool_t *pool);
<a name="l00063"></a>00063 
<a name="l00083"></a>00083 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___r_l.html#g608ebcddce542603a7f1d3cf51ae8d3c">apr_reslist_create</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> **reslist,
<a name="l00084"></a>00084                                              <span class="keywordtype">int</span> min, <span class="keywordtype">int</span> smax, <span class="keywordtype">int</span> hmax,
<a name="l00085"></a>00085                                              apr_interval_time_t ttl,
<a name="l00086"></a>00086                                              apr_reslist_constructor con,
<a name="l00087"></a>00087                                              apr_reslist_destructor de,
<a name="l00088"></a>00088                                              <span class="keywordtype">void</span> *params,
<a name="l00089"></a>00089                                              apr_pool_t *pool);
<a name="l00090"></a>00090 
<a name="l00102"></a>00102 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___r_l.html#g103e0cbac6c5da7cb93d4e52799233cb">apr_reslist_destroy</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist);
<a name="l00103"></a>00103 
<a name="l00109"></a>00109 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___r_l.html#gdfbb592b31ff9215f45d3280636e41d7">apr_reslist_acquire</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist,
<a name="l00110"></a>00110                                               <span class="keywordtype">void</span> **resource);
<a name="l00111"></a>00111 
<a name="l00115"></a>00115 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___r_l.html#gf65ca1701994a0323df639cdb4a8d8b2">apr_reslist_release</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist,
<a name="l00116"></a>00116                                               <span class="keywordtype">void</span> *resource);
<a name="l00117"></a>00117 
<a name="l00124"></a>00124 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___r_l.html#gfe06c964d04a568f2625fb5a9ba7bad6">apr_reslist_timeout_set</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist,
<a name="l00125"></a>00125                                           apr_interval_time_t timeout);
<a name="l00126"></a>00126 
<a name="l00132"></a>00132 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(apr_status_t) <a class="code" href="group___a_p_r___util___r_l.html#g346c0604115a9659cf23ed0cc781f7a9">apr_reslist_invalidate</a>(<a class="code" href="group___a_p_r___util___r_l.html#g670f6719dfeffe1037e063eaab7b82ac">apr_reslist_t</a> *reslist,
<a name="l00133"></a>00133                                                  <span class="keywordtype">void</span> *resource);
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span>}
<a name="l00138"></a>00138 <span class="preprocessor">#endif</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span>
<a name="l00142"></a>00142 <span class="preprocessor">#endif  </span><span class="comment">/* APR_HAS_THREADS */</span>
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="preprocessor">#endif  </span><span class="comment">/* ! APR_RESLIST_H */</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 24 02:22:55 2008 for Apache Portable Runtime Utility Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>