apu.h revision 252454
1/* $FreeBSD: head/usr.bin/svn/lib/libapr_util/apu.h 252454 2013-07-01 07:00:12Z peter $ */ 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/** 47 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may 48 * use the most appropriate calling convention. Public APR functions with 49 * variable arguments must use APU_DECLARE_NONSTD(). 50 * 51 * @fn APU_DECLARE(rettype) apr_func(args); 52 */ 53#define APU_DECLARE(type) type 54/** 55 * The public APR-UTIL functions using variable arguments are declared with 56 * APU_DECLARE_NONSTD(), as they must use the C language calling convention. 57 * 58 * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...); 59 */ 60#define APU_DECLARE_NONSTD(type) type 61/** 62 * The public APR-UTIL variables are declared with APU_DECLARE_DATA. 63 * This assures the appropriate indirection is invoked at compile time. 64 * 65 * @fn APU_DECLARE_DATA type apr_variable; 66 * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for 67 * declarations within headers to properly import the variable. 68 */ 69#define APU_DECLARE_DATA 70 71#if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC) 72/** 73 * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA. 74 * 75 * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols 76 * declared with APU_MODULE_DECLARE_DATA are always exported. 77 * @code 78 * module APU_MODULE_DECLARE_DATA mod_tag 79 * @endcode 80 */ 81#define APU_MODULE_DECLARE_DATA 82#else 83#define APU_MODULE_DECLARE_DATA __declspec(dllexport) 84#endif 85 86/* 87 * we always have SDBM (it's in our codebase) 88 */ 89#define APU_HAVE_SDBM 1 90#define APU_HAVE_GDBM 0 91#define APU_HAVE_NDBM 0 92#define APU_HAVE_DB 0 93 94#if APU_HAVE_DB 95#define APU_HAVE_DB_VERSION 0 96#endif 97 98#define APU_HAVE_PGSQL 0 99#define APU_HAVE_MYSQL 0 100#define APU_HAVE_SQLITE3 0 101#define APU_HAVE_SQLITE2 0 102#define APU_HAVE_ORACLE 0 103#define APU_HAVE_FREETDS 0 104#define APU_HAVE_ODBC 0 105 106#define APU_HAVE_CRYPTO 0 107#define APU_HAVE_OPENSSL 0 108#define APU_HAVE_NSS 0 109 110#define APU_HAVE_APR_ICONV 0 111#define APU_HAVE_ICONV 0 112#define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV) 113 114#endif /* APU_H */ 115/** @} */ 116