diff --git a/lib/osmosdr/osmosdr_snk_c.h b/lib/osmosdr/osmosdr_snk_c.h index 8cb9e81..d1e520f 100644 --- a/lib/osmosdr/osmosdr_snk_c.h +++ b/lib/osmosdr/osmosdr_snk_c.h @@ -20,7 +20,6 @@ #ifndef INCLUDED_OSMOSDR_SNK_C_H #define INCLUDED_OSMOSDR_SNK_C_H -#include #include class osmosdr_snk_c; @@ -45,7 +44,7 @@ typedef boost::shared_ptr osmosdr_snk_c_sptr; * constructor is private. osmosdr_make_snk_c is the public * interface for creating new instances. */ -OSMOSDR_API osmosdr_snk_c_sptr osmosdr_make_snk_c (const std::string & args = ""); +osmosdr_snk_c_sptr osmosdr_make_snk_c (const std::string & args = ""); /*! * \brief Takes a stream of complex samples. @@ -53,14 +52,14 @@ OSMOSDR_API osmosdr_snk_c_sptr osmosdr_make_snk_c (const std::string & args = "" * * This uses the preferred technique: subclassing gr_hier_block2. */ -class OSMOSDR_API osmosdr_snk_c : +class osmosdr_snk_c : public gr_hier_block2 { private: // The friend declaration allows osmosdr_make_snk_c to // access the private constructor. - friend OSMOSDR_API osmosdr_snk_c_sptr osmosdr_make_snk_c (const std::string & args); + friend osmosdr_snk_c_sptr osmosdr_make_snk_c (const std::string & args); /*! * \brief Takes a stream of complex samples. diff --git a/lib/osmosdr/osmosdr_src_c.h b/lib/osmosdr/osmosdr_src_c.h index 412d037..37230ca 100644 --- a/lib/osmosdr/osmosdr_src_c.h +++ b/lib/osmosdr/osmosdr_src_c.h @@ -20,7 +20,6 @@ #ifndef INCLUDED_OSMOSDR_SRC_C_H #define INCLUDED_OSMOSDR_SRC_C_H -#include #include #include @@ -52,7 +51,7 @@ typedef boost::shared_ptr osmosdr_src_c_sptr; * constructor is private. osmosdr_make_src_c is the public * interface for creating new instances. */ -OSMOSDR_API osmosdr_src_c_sptr osmosdr_make_src_c (const std::string & args = ""); +osmosdr_src_c_sptr osmosdr_make_src_c (const std::string & args = ""); /*! * \brief Provides a stream of complex samples. @@ -60,7 +59,7 @@ OSMOSDR_API osmosdr_src_c_sptr osmosdr_make_src_c (const std::string & args = "" * * \sa osmosdr_sink_c for a version that subclasses gr_hier_block2. */ -class OSMOSDR_API osmosdr_src_c : +class osmosdr_src_c : public gr_sync_block, public osmosdr_src_iface { @@ -68,7 +67,7 @@ private: // The friend declaration allows osmosdr_make_src_c to // access the private constructor. - friend OSMOSDR_API osmosdr_src_c_sptr osmosdr_make_src_c (const std::string & args); + friend osmosdr_src_c_sptr osmosdr_make_src_c (const std::string & args); /*! * \brief Provides a stream of complex samples. diff --git a/lib/osmosdr_sink_c_impl.h b/lib/osmosdr_sink_c_impl.h index 6562157..c687124 100644 --- a/lib/osmosdr_sink_c_impl.h +++ b/lib/osmosdr_sink_c_impl.h @@ -20,10 +20,9 @@ #ifndef INCLUDED_OSMOSDR_SINK_C_IMPL_H #define INCLUDED_OSMOSDR_SINK_C_IMPL_H -#include #include -class OSMOSDR_API osmosdr_sink_c_impl : public osmosdr_sink_c +class osmosdr_sink_c_impl : public osmosdr_sink_c { public: @@ -32,7 +31,7 @@ private: // The friend declaration allows osmosdr_make_sink_c to // access the private constructor. - friend OSMOSDR_API osmosdr_sink_c_sptr osmosdr_make_sink_c (const std::string & args); + friend osmosdr_sink_c_sptr osmosdr_make_sink_c (const std::string & args); }; #endif /* INCLUDED_OSMOSDR_SINK_C_IMPL_H */ diff --git a/lib/osmosdr_source_c_impl.h b/lib/osmosdr_source_c_impl.h index 0202fce..1bdf6b3 100644 --- a/lib/osmosdr_source_c_impl.h +++ b/lib/osmosdr_source_c_impl.h @@ -20,14 +20,13 @@ #ifndef INCLUDED_OSMOSDR_SOURCE_C_IMPL_H #define INCLUDED_OSMOSDR_SOURCE_C_IMPL_H -#include #include #include #include -class OSMOSDR_API osmosdr_source_c_impl : public osmosdr_source_c +class osmosdr_source_c_impl : public osmosdr_source_c { public: size_t get_num_channels( void ); @@ -61,7 +60,7 @@ private: // The friend declaration allows osmosdr_make_source_c to // access the private constructor. - friend OSMOSDR_API osmosdr_source_c_sptr osmosdr_make_source_c (const std::string & args); + friend osmosdr_source_c_sptr osmosdr_make_source_c (const std::string & args); double _sample_rate; std::map< size_t, double > _center_freq; diff --git a/lib/osmosdr_src_iface.h b/lib/osmosdr_src_iface.h index dbcc4cf..b9ab9f8 100644 --- a/lib/osmosdr_src_iface.h +++ b/lib/osmosdr_src_iface.h @@ -32,7 +32,7 @@ typedef boost::shared_ptr osmosdr_src_iface_sptr; * TODO: document * */ -class OSMOSDR_API osmosdr_src_iface +class osmosdr_src_iface { public: /*! diff --git a/lib/rtl/rtl_source_c.h b/lib/rtl/rtl_source_c.h index 0b05229..d67b7ea 100644 --- a/lib/rtl/rtl_source_c.h +++ b/lib/rtl/rtl_source_c.h @@ -22,7 +22,6 @@ #ifndef INCLUDED_RTLSDR_SOURCE_C_H #define INCLUDED_RTLSDR_SOURCE_C_H -#include #include #include @@ -54,14 +53,14 @@ typedef boost::shared_ptr rtl_source_c_sptr; * constructor is private. make_rtl_source_c is the public * interface for creating new instances. */ -OSMOSDR_API rtl_source_c_sptr make_rtl_source_c (const std::string & args = ""); +rtl_source_c_sptr make_rtl_source_c (const std::string & args = ""); /*! * \brief Provides a stream of complex samples. * \ingroup block * */ -class OSMOSDR_API rtl_source_c : +class rtl_source_c : public gr_sync_block, public osmosdr_src_iface { @@ -69,7 +68,7 @@ private: // The friend declaration allows make_rtl_source_c to // access the private constructor. - friend OSMOSDR_API rtl_source_c_sptr make_rtl_source_c (const std::string & args); + friend rtl_source_c_sptr make_rtl_source_c (const std::string & args); /*! * \brief Provides a stream of complex samples. diff --git a/lib/rtl_tcp/rtl_tcp_source_f.h b/lib/rtl_tcp/rtl_tcp_source_f.h index dd994cb..694708a 100644 --- a/lib/rtl_tcp/rtl_tcp_source_f.h +++ b/lib/rtl_tcp/rtl_tcp_source_f.h @@ -21,8 +21,6 @@ #ifndef RTL_TCP_SOURCE_F_H #define RTL_TCP_SOURCE_F_H -#include - #include #include @@ -49,7 +47,7 @@ typedef void* optval_t; class rtl_tcp_source_f; typedef boost::shared_ptr rtl_tcp_source_f_sptr; -OSMOSDR_API rtl_tcp_source_f_sptr make_rtl_tcp_source_f ( +rtl_tcp_source_f_sptr make_rtl_tcp_source_f ( size_t itemsize, const char *host, unsigned short port, @@ -57,7 +55,7 @@ OSMOSDR_API rtl_tcp_source_f_sptr make_rtl_tcp_source_f ( bool eof, bool wait); -class OSMOSDR_API rtl_tcp_source_f : public gr_sync_block +class rtl_tcp_source_f : public gr_sync_block { private: size_t d_itemsize; @@ -75,7 +73,7 @@ private: // The friend declaration allows make_source_c to // access the private constructor. - friend OSMOSDR_API rtl_tcp_source_f_sptr make_rtl_tcp_source_f ( + friend rtl_tcp_source_f_sptr make_rtl_tcp_source_f ( size_t itemsize, const char *host, unsigned short port,