GME  13
apr_dso.h
Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef APR_DSO_DOT_H
00018 #define APR_DSO_DOT_H
00019 
00025 #include "apr.h"
00026 #include "apr_pools.h"
00027 #include "apr_errno.h"
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00039 #if APR_HAS_DSO || defined(DOXYGEN)
00040 
00044 typedef struct apr_dso_handle_t       apr_dso_handle_t;
00045 
00049 typedef void *                        apr_dso_handle_sym_t;
00050 
00059 APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, 
00060                                        const char *path, apr_pool_t *ctx);
00061 
00066 APR_DECLARE(apr_status_t) apr_dso_unload(apr_dso_handle_t *handle);
00067 
00074 APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym, 
00075                                       apr_dso_handle_t *handle,
00076                                       const char *symname);
00077 
00084 APR_DECLARE(const char *) apr_dso_error(apr_dso_handle_t *dso, char *buf, apr_size_t bufsize);
00085 
00086 #endif /* APR_HAS_DSO */
00087 
00090 #ifdef __cplusplus
00091 }
00092 #endif
00093 
00094 #endif