apu.h revision 252454
1251877Speter/* $FreeBSD: head/usr.bin/svn/lib/libapr_util/apu.h 252454 2013-07-01 07:00:12Z peter $ */ 2251877Speter/* Licensed to the Apache Software Foundation (ASF) under one or more 3251877Speter * contributor license agreements. See the NOTICE file distributed with 4251877Speter * this work for additional information regarding copyright ownership. 5251877Speter * The ASF licenses this file to You under the Apache License, Version 2.0 6251877Speter * (the "License"); you may not use this file except in compliance with 7251877Speter * the License. You may obtain a copy of the License at 8251877Speter * 9251877Speter * http://www.apache.org/licenses/LICENSE-2.0 10251877Speter * 11251877Speter * Unless required by applicable law or agreed to in writing, software 12251877Speter * distributed under the License is distributed on an "AS IS" BASIS, 13251877Speter * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14251877Speter * See the License for the specific language governing permissions and 15251877Speter * limitations under the License. 16251877Speter */ 17251877Speter 18251877Speter/* 19251877Speter * apu.h is generated from apu.h.in by configure -- do not edit apu.h 20251877Speter */ 21251877Speter/* @file apu.h 22251877Speter * @brief APR-Utility main file 23251877Speter */ 24251877Speter/** 25251877Speter * @defgroup APR_Util APR Utility Functions 26251877Speter * @{ 27251877Speter */ 28251877Speter 29251877Speter 30251877Speter#ifndef APU_H 31251877Speter#define APU_H 32251877Speter 33251877Speter/** 34251877Speter * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library, 35251877Speter * so that all public symbols are exported. 36251877Speter * 37251877Speter * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers, 38251877Speter * to provide static linkage when the dynamic library may be unavailable. 39251877Speter * 40251877Speter * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when 41251877Speter * including the APR-UTIL public headers, to import and link the symbols from 42251877Speter * the dynamic APR-UTIL library and assure appropriate indirection and calling 43251877Speter * conventions at compile time. 44251877Speter */ 45251877Speter 46251877Speter/** 47251877Speter * The public APR-UTIL functions are declared with APU_DECLARE(), so they may 48251877Speter * use the most appropriate calling convention. Public APR functions with 49251877Speter * variable arguments must use APU_DECLARE_NONSTD(). 50251877Speter * 51251877Speter * @fn APU_DECLARE(rettype) apr_func(args); 52251877Speter */ 53251877Speter#define APU_DECLARE(type) type 54251877Speter/** 55251877Speter * The public APR-UTIL functions using variable arguments are declared with 56251877Speter * APU_DECLARE_NONSTD(), as they must use the C language calling convention. 57251877Speter * 58251877Speter * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...); 59251877Speter */ 60251877Speter#define APU_DECLARE_NONSTD(type) type 61251877Speter/** 62251877Speter * The public APR-UTIL variables are declared with APU_DECLARE_DATA. 63251877Speter * This assures the appropriate indirection is invoked at compile time. 64251877Speter * 65251877Speter * @fn APU_DECLARE_DATA type apr_variable; 66251877Speter * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for 67251877Speter * declarations within headers to properly import the variable. 68251877Speter */ 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