aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmosdr/api.h
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-05-30 16:14:22 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-05-30 16:14:22 +0200
commit7e55cb9224fb7f1586a829f7321ef5b1bded88f5 (patch)
tree42eb1dbd4d55538bf4e5207d69211c6b01b00375 /include/osmosdr/api.h
parent3e6a24e5d9e81878ac57281e7a9d3b23d3dbc6e8 (diff)
introduce osmosdr namespace, remove _c suffix
- the namespace conversion adopts the common gnuradio coding guidelines - suffix removal is a preparation to support 8/16 bit complex data types
Diffstat (limited to 'include/osmosdr/api.h')
-rw-r--r--include/osmosdr/api.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/osmosdr/api.h b/include/osmosdr/api.h
new file mode 100644
index 0000000..d3adbf0
--- /dev/null
+++ b/include/osmosdr/api.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2011 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * GNU Radio 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, or (at your option)
+ * any later version.
+ *
+ * GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_OSMOSDR_API_H
+#define INCLUDED_OSMOSDR_API_H
+
+#include <gnuradio/attributes.h>
+
+#ifdef gnuradio_osmosdr_EXPORTS
+# define OSMOSDR_API __GR_ATTR_EXPORT
+#else
+# define OSMOSDR_API __GR_ATTR_IMPORT
+#endif
+
+#endif /* INCLUDED_OSMOSDR_API_H */