Apache Portable Runtime
apu_internal.h
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "apr.h"
18 #include "apr_dso.h"
19 #include "apu.h"
20 #include "apu_errno.h"
21 
22 #ifndef APU_INTERNAL_H
23 #define APU_INTERNAL_H
24 
25 #if APR_HAVE_MODULAR_DSO
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /* For modular dso loading, an internal interlock to allow us to
32  * continue to initialize modules by multiple threads, the caller
33  * of apu_dso_load must lock first, and not unlock until any init
34  * finalization is complete.
35  */
36 apr_status_t apu_dso_init(apr_pool_t *pool);
37 
38 apr_status_t apu_dso_mutex_lock(void);
39 apr_status_t apu_dso_mutex_unlock(void);
40 
41 apr_status_t apu_dso_load(apr_dso_handle_t **dso, apr_dso_handle_sym_t *dsoptr,
42  const char *module, const char *modsym,
43  apr_pool_t *pool, apu_err_t *err);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* APR_HAVE_MODULAR_DSO */
50 
51 #endif /* APU_INTERNAL_H */
52 
APR Platform Definitions.
APR Dynamic Object Handling Routines.
APR-Util Error Codes.
struct apr_dso_handle_t apr_dso_handle_t
Definition: apr_dso.h:44
void * apr_dso_handle_sym_t
Definition: apr_dso.h:49
int apr_status_t
Definition: apr_errno.h:44
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
Definition: apu_errno.h:289