Apache Portable Runtime
apu_internal.h
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 #include "apr.h"
00018 #include "apr_dso.h"
00019 #include "apu.h"
00020 
00021 #ifndef APU_INTERNAL_H
00022 #define APU_INTERNAL_H
00023 
00024 #if APR_HAVE_MODULAR_DSO
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 /* For modular dso loading, an internal interlock to allow us to
00031  * continue to initialize modules by multiple threads, the caller
00032  * of apu_dso_load must lock first, and not unlock until any init
00033  * finalization is complete.
00034  */
00035 apr_status_t apu_dso_init(apr_pool_t *pool);
00036 
00037 apr_status_t apu_dso_mutex_lock(void);
00038 apr_status_t apu_dso_mutex_unlock(void);
00039 
00040 apr_status_t apu_dso_load(apr_dso_handle_t **dso, apr_dso_handle_sym_t *dsoptr,
00041                           const char *module, const char *modsym,
00042                           apr_pool_t *pool);
00043 
00044 #ifdef __cplusplus
00045 }
00046 #endif
00047 
00048 #endif /* APR_HAVE_MODULAR_DSO */
00049 
00050 #endif /* APU_INTERNAL_H */
00051 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines