<!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_env.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_env.h</h1><a href="apr__env_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_ENV_H</span> 00017 <span class="preprocessor"></span><span class="preprocessor">#define APR_ENV_H</span> 00018 <span class="preprocessor"></span><span class="comment">/**</span> 00019 <span class="comment"> * @file apr_env.h</span> 00020 <span class="comment"> * @brief APR Environment functions</span> 00021 <span class="comment"> */</span> 00022 <span class="preprocessor">#include "<a class="code" href="apr__errno_8h.html">apr_errno.h</a>"</span> 00023 <span class="preprocessor">#include "<a class="code" href="apr__pools_8h.html">apr_pools.h</a>"</span> 00024 00025 <span class="preprocessor">#ifdef __cplusplus</span> 00026 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { 00027 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span> 00028 <span class="comment"></span> 00029 <span class="comment">/**</span> 00030 <span class="comment"> * @defgroup apr_env Functions for manupulating the environment</span> 00031 <span class="comment"> * @ingroup APR </span> 00032 <span class="comment"> * @{</span> 00033 <span class="comment"> */</span> 00034 <span class="comment"></span> 00035 <span class="comment">/**</span> 00036 <span class="comment"> * Get the value of an environment variable</span> 00037 <span class="comment"> * @param value the returned value, allocated from @a pool</span> 00038 <span class="comment"> * @param envvar the name of the environment variable</span> 00039 <span class="comment"> * @param pool where to allocate @a value and any temporary storage from</span> 00040 <span class="comment"> */</span> 00041 <a class="code" href="group__apr__platform.html#ga123">APR_DECLARE</a>(apr_status_t) apr_env_get(<span class="keywordtype">char</span> **value, const <span class="keywordtype">char</span> *envvar, 00042 apr_pool_t *pool); 00043 <span class="comment"></span> 00044 <span class="comment">/**</span> 00045 <span class="comment"> * Set the value of an environment variable</span> 00046 <span class="comment"> * @param envvar the name of the environment variable</span> 00047 <span class="comment"> * @param value the value to set</span> 00048 <span class="comment"> * @param pool where to allocate temporary storage from</span> 00049 <span class="comment"> */</span> 00050 APR_DECLARE(apr_status_t) apr_env_set(const <span class="keywordtype">char</span> *envvar, const <span class="keywordtype">char</span> *value, 00051 apr_pool_t *pool); 00052 <span class="comment"></span> 00053 <span class="comment">/**</span> 00054 <span class="comment"> * Delete a variable from the environment</span> 00055 <span class="comment"> * @param envvar the name of the environment variable</span> 00056 <span class="comment"> * @param pool where to allocate temporary storage from</span> 00057 <span class="comment"> */</span> 00058 APR_DECLARE(apr_status_t) apr_env_delete(const <span class="keywordtype">char</span> *envvar, apr_pool_t *pool); 00059 <span class="comment"></span> 00060 <span class="comment">/** @} */</span> 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif <span class="comment">/* ! APR_ENV_H */</span> </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>