]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/svn/lib/libapr_util/apu.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.bin / svn / lib / libapr_util / apu.h
1 /* $FreeBSD$ */
2 /* Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 /*
19  * apu.h is generated from apu.h.in by configure -- do not edit apu.h
20  */
21 /* @file apu.h
22  * @brief APR-Utility main file
23  */
24 /**
25  * @defgroup APR_Util APR Utility Functions
26  * @{
27  */
28
29
30 #ifndef APU_H
31 #define APU_H
32
33 /**
34  * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
35  * so that all public symbols are exported.
36  *
37  * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
38  * to provide static linkage when the dynamic library may be unavailable.
39  *
40  * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
41  * including the APR-UTIL public headers, to import and link the symbols from 
42  * the dynamic APR-UTIL library and assure appropriate indirection and calling
43  * conventions at compile time.
44  */
45
46 #if defined(DOXYGEN) || !defined(WIN32)
47 /**
48  * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
49  * use the most appropriate calling convention.  Public APR functions with 
50  * variable arguments must use APU_DECLARE_NONSTD().
51  *
52  * @fn APU_DECLARE(rettype) apr_func(args);
53  */
54 #define APU_DECLARE(type)            type
55 /**
56  * The public APR-UTIL functions using variable arguments are declared with 
57  * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
58  *
59  * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
60  */
61 #define APU_DECLARE_NONSTD(type)     type
62 /**
63  * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
64  * This assures the appropriate indirection is invoked at compile time.
65  *
66  * @fn APU_DECLARE_DATA type apr_variable;
67  * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for
68  * declarations within headers to properly import the variable.
69  */
70 #define APU_DECLARE_DATA
71 #elif defined(APU_DECLARE_STATIC)
72 #define APU_DECLARE(type)            type __stdcall
73 #define APU_DECLARE_NONSTD(type)     type __cdecl
74 #define APU_DECLARE_DATA
75 #elif defined(APU_DECLARE_EXPORT)
76 #define APU_DECLARE(type)            __declspec(dllexport) type __stdcall
77 #define APU_DECLARE_NONSTD(type)     __declspec(dllexport) type __cdecl
78 #define APU_DECLARE_DATA             __declspec(dllexport)
79 #else
80 #define APU_DECLARE(type)            __declspec(dllimport) type __stdcall
81 #define APU_DECLARE_NONSTD(type)     __declspec(dllimport) type __cdecl
82 #define APU_DECLARE_DATA             __declspec(dllimport)
83 #endif
84
85 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
86 /**
87  * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
88  *
89  * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols 
90  * declared with APU_MODULE_DECLARE_DATA are always exported.
91  * @code
92  * module APU_MODULE_DECLARE_DATA mod_tag
93  * @endcode
94  */
95 #define APU_MODULE_DECLARE_DATA
96 #else
97 #define APU_MODULE_DECLARE_DATA           __declspec(dllexport)
98 #endif
99
100 /*
101  * we always have SDBM (it's in our codebase)
102  */
103 #define APU_HAVE_SDBM   1
104 #define APU_HAVE_GDBM   0
105 #define APU_HAVE_NDBM   0
106 #define APU_HAVE_DB     0
107
108 #if APU_HAVE_DB
109 #define APU_HAVE_DB_VERSION    0
110 #endif
111
112 #define APU_HAVE_PGSQL         0
113 #define APU_HAVE_MYSQL         0
114 #define APU_HAVE_SQLITE3       0
115 #define APU_HAVE_SQLITE2       0
116 #define APU_HAVE_ORACLE        0
117 #define APU_HAVE_FREETDS       0
118 #define APU_HAVE_ODBC          0
119
120 #define APU_HAVE_CRYPTO        0
121 #define APU_HAVE_OPENSSL       0
122 #define APU_HAVE_NSS           0
123
124 #ifndef APU_HAVE_APR_ICONV
125 #define APU_HAVE_APR_ICONV     0
126 #endif
127 #ifndef APU_HAVE_ICONV
128 #define APU_HAVE_ICONV         0
129 #endif
130 #define APR_HAS_XLATE          (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
131
132 #endif /* APU_H */
133 /** @} */