diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
commit | f8247040e6231c4b3b5099ea3a526348b7941566 (patch) | |
tree | 0cc92ad6ebf6ae49a62f6e7ef8ec819121d63630 /trunk/include/asterisk/zapata.h | |
parent | d88e56c61ce2042544c1a8a71c93b69ab2e6ffba (diff) |
Creating tag for the release of asterisk-1.6.0-beta1v1.6.0-beta1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta1@99163 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'trunk/include/asterisk/zapata.h')
-rw-r--r-- | trunk/include/asterisk/zapata.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/trunk/include/asterisk/zapata.h b/trunk/include/asterisk/zapata.h new file mode 100644 index 000000000..50df73a58 --- /dev/null +++ b/trunk/include/asterisk/zapata.h @@ -0,0 +1,48 @@ +/* + * Asterisk -- An open source telephony toolkit. + * + * Copyright (C) 2007, Digium, Inc. + * + * See http://www.asterisk.org for more information about + * the Asterisk project. Please do not directly contact + * any of the maintainers of this project for assistance; + * the project provides a web site, mailing lists and IRC + * channels for your use. + * + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2. See the LICENSE file + * at the top of the source tree. + * + * Sometimes one really wonders why we need a copyright + * for less than ten lines of preprocessor directives... + */ + +/*! \file + * \brief Stub to find zaptel headers +* + * Stub to find the zaptel headers. The configure script will + * define HAVE_ZAPTEL_VERSION according to what it has found. + * Applications should include "zapata.h" and not (directly) + * <foo/zaptel.h> or <foo/tonezone.h>. + * For the mapping of version numbers to location see below. + * + */ +#ifndef _AST_ZAPATA_H +#define _AST_ZAPATA_H + +#ifdef HAVE_ZAPTEL +#include <sys/ioctl.h> + +#if defined(HAVE_ZAPTEL_VERSION) && HAVE_ZAPTEL_VERSION < 100 +/* Very old versions of zaptel drivers on FreeBSD install in ${PREFIX} */ +#include <zaptel.h> +#include <tonezone.h> +#else +/* newer versions install in ${PREFIX}/zaptel */ +#include <zaptel/zaptel.h> +#include <zaptel/tonezone.h> +#endif /* HAVE_ZAPTEL_VERSION < 100 */ + +#endif /* HAVE_ZAPTEL */ + +#endif /* _AST_ZAPATA_H */ |