<!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_dso.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 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> <div class="nav"> <a class="el" href="dir_000000.html">home</a> / <a class="el" href="dir_000001.html">oden</a> / <a class="el" href="dir_000002.html">RPM</a> / <a class="el" href="dir_000003.html">BUILD</a> / <a class="el" href="dir_000004.html">apr-1.1.1</a> / <a class="el" href="dir_000005.html">include</a></div> <h1>apr_dso.h</h1><a href="apr__dso_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_DSO_DOT_H</span> 00017 <span class="preprocessor"></span><span class="preprocessor">#define APR_DSO_DOT_H</span> 00018 <span class="preprocessor"></span><span class="comment"></span> 00019 <span class="comment">/**</span> 00020 <span class="comment"> * @file apr_dso.h</span> 00021 <span class="comment"> * @brief APR Dynamic Object Handling Routines</span> 00022 <span class="comment"> */</span> 00023 00024 <span class="preprocessor">#include "<a class="code" href="apr_8h.html">apr.h</a>"</span> 00025 <span class="preprocessor">#include "<a class="code" href="apr__pools_8h.html">apr_pools.h</a>"</span> 00026 <span class="preprocessor">#include "<a class="code" href="apr__errno_8h.html">apr_errno.h</a>"</span> 00027 00028 <span class="preprocessor">#ifdef __cplusplus</span> 00029 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { 00030 <span class="preprocessor">#endif</span> 00031 <span class="preprocessor"></span><span class="comment"></span> 00032 <span class="comment">/**</span> 00033 <span class="comment"> * @defgroup apr_dso Dynamic Object Handling</span> 00034 <span class="comment"> * @ingroup APR </span> 00035 <span class="comment"> * @{</span> 00036 <span class="comment"> */</span> 00037 00038 <span class="preprocessor">#if APR_HAS_DSO || defined(DOXYGEN)</span> 00039 <span class="preprocessor"></span><span class="comment"></span> 00040 <span class="comment">/**</span> 00041 <span class="comment"> * Structure for referencing dynamic objects</span> 00042 <span class="comment"> */</span> <a name="l00043"></a><a class="code" href="group__apr__dso.html#ga0">00043</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__dso.html#ga0">apr_dso_handle_t</a> <a class="code" href="group__apr__dso.html#ga0">apr_dso_handle_t</a>; 00044 <span class="comment"></span> 00045 <span class="comment">/**</span> 00046 <span class="comment"> * Structure for referencing symbols from dynamic objects</span> 00047 <span class="comment"> */</span> <a name="l00048"></a><a class="code" href="group__apr__dso.html#ga1">00048</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> * apr_dso_handle_sym_t; 00049 <span class="comment"></span> 00050 <span class="comment">/**</span> 00051 <span class="comment"> * Load a DSO library.</span> 00052 <span class="comment"> * @param res_handle Location to store new handle for the DSO.</span> 00053 <span class="comment"> * @param path Path to the DSO library</span> 00054 <span class="comment"> * @param ctx Pool to use.</span> 00055 <span class="comment"> * @bug We aught to provide an alternative to RTLD_GLOBAL, which</span> 00056 <span class="comment"> * is the only supported method of loading DSOs today.</span> 00057 <span class="comment"> */</span> 00058 <a class="code" href="group__apr__platform.html#ga123">APR_DECLARE</a>(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, 00059 const <span class="keywordtype">char</span> *path, apr_pool_t *ctx); 00060 <span class="comment"></span> 00061 <span class="comment">/**</span> 00062 <span class="comment"> * Close a DSO library.</span> 00063 <span class="comment"> * @param handle handle to close.</span> 00064 <span class="comment"> */</span> 00065 APR_DECLARE(apr_status_t) apr_dso_unload(apr_dso_handle_t *handle); 00066 <span class="comment"></span> 00067 <span class="comment">/**</span> 00068 <span class="comment"> * Load a symbol from a DSO handle.</span> 00069 <span class="comment"> * @param ressym Location to store the loaded symbol</span> 00070 <span class="comment"> * @param handle handle to load the symbol from.</span> 00071 <span class="comment"> * @param symname Name of the symbol to load.</span> 00072 <span class="comment"> */</span> 00073 APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym, 00074 apr_dso_handle_t *handle, 00075 const <span class="keywordtype">char</span> *symname); 00076 <span class="comment"></span> 00077 <span class="comment">/**</span> 00078 <span class="comment"> * Report more information when a DSO function fails.</span> 00079 <span class="comment"> * @param dso The dso handle that has been opened</span> 00080 <span class="comment"> * @param buf Location to store the dso error</span> 00081 <span class="comment"> * @param bufsize The size of the provided buffer</span> 00082 <span class="comment"> */</span> 00083 APR_DECLARE(const <span class="keywordtype">char</span> *) apr_dso_error(apr_dso_handle_t *dso, <span class="keywordtype">char</span> *buf, apr_size_t bufsize); 00084 00085 #endif <span class="comment">/* APR_HAS_DSO */</span> 00086 <span class="comment"></span> 00087 <span class="comment">/** @} */</span> 00088 00089 #ifdef __cplusplus 00090 } 00091 #endif 00092 00093 #endif </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Mar 20 19:52:26 2005 for Apache Portable Runtime by <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>