[asterisk-commits] rizzo: trunk r51290 - /trunk/include/asterisk/zapata.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 19 08:48:14 MST 2007


Author: rizzo
Date: Fri Jan 19 09:48:13 2007
New Revision: 51290

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51290
Log:
Add a stub file to find the zaptel headers in the right
place, rather than repeating the check on every single file.

Changes to the individual files are coming.

The header file name has been suggested by kevin.

Approved by: kpfleming


Added:
    trunk/include/asterisk/zapata.h   (with props)

Added: trunk/include/asterisk/zapata.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/zapata.h?view=auto&rev=51290
==============================================================================
--- trunk/include/asterisk/zapata.h (added)
+++ trunk/include/asterisk/zapata.h Fri Jan 19 09:48:13 2007
@@ -1,0 +1,45 @@
+/*
+ * 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...
+ */
+
+/*
+ * 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>
+#endif	/* HAVE_ZAPTEL_VERSION < 100 */
+
+#endif	/* HAVE_ZAPTEL */
+
+#endif	/* _AST_ZAPATA_H */

Propchange: trunk/include/asterisk/zapata.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/asterisk/zapata.h
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: trunk/include/asterisk/zapata.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain



More information about the asterisk-commits mailing list