Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apu_internal.h
Go to the documentation of this file.
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 
21 #ifndef APU_INTERNAL_H
22 #define APU_INTERNAL_H
23 
24 #if APR_HAVE_MODULAR_DSO
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* For modular dso loading, an internal interlock to allow us to
31  * continue to initialize modules by multiple threads, the caller
32  * of apu_dso_load must lock first, and not unlock until any init
33  * finalization is complete.
34  */
35 apr_status_t apu_dso_init(apr_pool_t *pool);
36 
37 apr_status_t apu_dso_mutex_lock(void);
38 apr_status_t apu_dso_mutex_unlock(void);
39 
40 apr_status_t apu_dso_load(apr_dso_handle_t **dso, apr_dso_handle_sym_t *dsoptr,
41  const char *module, const char *modsym,
42  apr_pool_t *pool);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* APR_HAVE_MODULAR_DSO */
49 
50 #endif /* APU_INTERNAL_H */
51 
Definition: apr_arch_dso.h:33
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:556
APR Dynamic Object Handling Routines.
APR Platform Definitions.
void * apr_dso_handle_sym_t
Definition: apr_dso.h:49
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
Definition: http_config.h:349
int apr_status_t
Definition: apr_errno.h:44