1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
/*
* Copyright (C) 2006,2007 Stefan Siegl <stesie@brokenpipe.de>, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef GEIER_VERSION_H
#define GEIER_VERSION_H
#ifdef __cplusplus
#define GEIER_BEGIN_PROTOS extern "C" {
#define GEIER_END_PROTOS }
#else
#define GEIER_BEGIN_PROTOS
#define GEIER_END_PROTOS
#endif
/**
* LIBGEIER_CRYPTO_MODULE:
*
* The crypto module the GEIER library is linked against. Currently
* this is either "nss" or "openssl".
*/
#define LIBGEIER_CRYPTO_MODULE "nss"
/**
* LIBGEIER_TEST_CRYPTO_MODULE
*
* Check whether the crypto module's name of the installed header file
* (used and installed at compile time) matches the name of the installed
* library's crypto module.
*
* If the names don't match, a warning message is written to stderr.
*/
#define LIBGEIER_TEST_CRYPTO_MODULE \
geier_check_crypto_module(LIBGEIER_CRYPTO_MODULE);
/**
* LIBGEIER_DOTTED_VERSION:
*
* The version string of the GEIER library shipping this header file,
* not including the crypto module specification.
*/
#define LIBGEIER_DOTTED_VERSION "0.11"
/**
* LIBGEIER_TEST_VERSION:
*
* Check whether the version of the installed header file (used and
* installed at compile time) matches the installed library version.
*
* If the versions don't match, a warning message is written to
* stderr.
*/
#define LIBGEIER_TEST_VERSION geier_check_version(LIBGEIER_DOTTED_VERSION)
GEIER_BEGIN_PROTOS
/**
* geier_check_version
* @version: the version number to check the library against.
*
* Check whether the version number of the library matches the
* provided version information. If not, a warning message is emitted
* to stderr.
*
* The name of the crypto module is not compared.
*/
void geier_check_version(const char *version);
/**
* geier_check_crypto_module
* @module_name: the crypto module name to check the library against.
*
* Check whether the crypto module's name of the library matches the
* provided name. If not, a warning message is emitted to stderr.
*/
void geier_check_crypto_module(const char *module_name);
GEIER_END_PROTOS
#endif /* GEIER_VERSION_H */
|