<!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/private/apr_dbm_private.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 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 Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>include/private/apr_dbm_private.h</h1><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_DBM_PRIVATE_H</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define APR_DBM_PRIVATE_H</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "apr.h"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "apr_errno.h"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "apr_pools.h"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="apr__dbm_8h.html" title="APR-UTIL DBM library.">apr_dbm.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "apr_file_io.h"</span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="preprocessor">#include "apu.h"</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="comment">/* ### for now, include the DBM selection; this will go away once we start</span> <a name="l00029"></a>00029 <span class="comment"> ### building and linking all of the DBMs at once. */</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "apu_select_dbm.h"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00033"></a>00033 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00034"></a>00034 <span class="preprocessor">#endif</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00042"></a>00042 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">int</span>) apr_posix_perms2mode(apr_fileperms_t perm); <a name="l00043"></a>00043 <a name="l00047"></a><a class="code" href="structapr__dbm__type__t.html">00047</a> typedef struct { <a name="l00049"></a><a class="code" href="structapr__dbm__type__t.html#f023b97eba22415785caf005fc5dcf64">00049</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *name; <a name="l00050"></a>00050 <a name="l00052"></a>00052 apr_status_t (*open)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> **pdb, <span class="keyword">const</span> <span class="keywordtype">char</span> *pathname, <a name="l00053"></a>00053 apr_int32_t mode, apr_fileperms_t perm, <a name="l00054"></a>00054 apr_pool_t *pool); <a name="l00055"></a>00055 <a name="l00057"></a>00057 void (*close)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm); <a name="l00058"></a>00058 <a name="l00060"></a>00060 apr_status_t (*fetch)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> key, <a name="l00061"></a>00061 <a class="code" href="structapr__datum__t.html">apr_datum_t</a> * pvalue); <a name="l00062"></a>00062 <a name="l00064"></a>00064 apr_status_t (*store)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> key, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> value); <a name="l00065"></a>00065 <a name="l00067"></a>00067 apr_status_t (*del)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> key); <a name="l00068"></a>00068 <a name="l00070"></a>00070 int (*exists)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> key); <a name="l00071"></a>00071 <a name="l00073"></a>00073 apr_status_t (*firstkey)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> * pkey); <a name="l00074"></a>00074 <a name="l00076"></a>00076 apr_status_t (*nextkey)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> * pkey); <a name="l00077"></a>00077 <a name="l00079"></a>00079 void (*freedatum)(<a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> *dbm, <a class="code" href="structapr__datum__t.html">apr_datum_t</a> data); <a name="l00080"></a>00080 <a name="l00082"></a>00082 void (*getusednames)(apr_pool_t *pool, <a name="l00083"></a>00083 <span class="keyword">const</span> <span class="keywordtype">char</span> *pathname, <a name="l00084"></a>00084 <span class="keyword">const</span> <span class="keywordtype">char</span> **used1, <a name="l00085"></a>00085 <span class="keyword">const</span> <span class="keywordtype">char</span> **used2); <a name="l00086"></a>00086 <a name="l00087"></a>00087 } <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a>; <a name="l00088"></a>00088 <a name="l00089"></a>00089 <a name="l00093"></a><a class="code" href="structapr__dbm__t.html">00093</a> <span class="keyword">struct </span><a class="code" href="structapr__dbm__t.html">apr_dbm_t</a> <a name="l00094"></a>00094 { <a name="l00096"></a><a class="code" href="structapr__dbm__t.html#f80b38e28d1504e98f9aa3308285bf9b">00096</a> apr_pool_t *<a class="code" href="structapr__dbm__t.html#f80b38e28d1504e98f9aa3308285bf9b">pool</a>; <a name="l00097"></a>00097 <a name="l00099"></a><a class="code" href="structapr__dbm__t.html#228e2548b3a034d8d16451af4b93f3f1">00099</a> <span class="keywordtype">void</span> *<a class="code" href="structapr__dbm__t.html#228e2548b3a034d8d16451af4b93f3f1">file</a>; <a name="l00100"></a>00100 <a name="l00102"></a><a class="code" href="structapr__dbm__t.html#130a628921f4c46241d09476f8a3090c">00102</a> <span class="keywordtype">int</span> <a class="code" href="structapr__dbm__t.html#130a628921f4c46241d09476f8a3090c">errcode</a>; <a name="l00104"></a><a class="code" href="structapr__dbm__t.html#dc3defc90b90fe3411c099631f75a653">00104</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structapr__dbm__t.html#dc3defc90b90fe3411c099631f75a653">errmsg</a>; <a name="l00105"></a>00105 <a name="l00107"></a><a class="code" href="structapr__dbm__t.html#27287213e7ebe16d9945207a13300faf">00107</a> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> *<a class="code" href="structapr__dbm__t.html#27287213e7ebe16d9945207a13300faf">type</a>; <a name="l00108"></a>00108 }; <a name="l00109"></a>00109 <a name="l00110"></a>00110 <a name="l00111"></a>00111 <span class="comment">/* Declare all of the builtin DBM providers */</span> <a name="l00112"></a>00112 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_sdbm; <a name="l00113"></a>00113 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_gdbm; <a name="l00114"></a>00114 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_ndbm; <a name="l00115"></a>00115 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_db1; <a name="l00116"></a>00116 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_db2; <a name="l00117"></a>00117 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_db3; <a name="l00118"></a>00118 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_db4; <a name="l00119"></a>00119 <a class="code" href="group___a_p_r___util.html#g7009cc3d445c4b2f93c80990230d7b3f">APU_DECLARE_DATA</a> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="structapr__dbm__type__t.html">apr_dbm_type_t</a> apr_dbm_type_db; <a name="l00120"></a>00120 <a name="l00121"></a>00121 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00122"></a>00122 <span class="preprocessor"></span>} <a name="l00123"></a>00123 <span class="preprocessor">#endif</span> <a name="l00124"></a>00124 <span class="preprocessor"></span> <a name="l00125"></a>00125 <span class="preprocessor">#endif </span><span class="comment">/* APR_DBM_PRIVATE_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 <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>