diff options
author | Tom Rondeau | 2012-12-12 16:09:08 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-12 16:09:08 -0500 |
commit | 6e1b2888b3001c1c80fd78a714f5e5b98b1fe81d (patch) | |
tree | 2f4e188c980961bce405f04f517e8c2bf35ab749 /gnuradio-core | |
parent | f62d61c12e158255925da6af0ec430e122ef6ca2 (diff) | |
download | gnuradio-6e1b2888b3001c1c80fd78a714f5e5b98b1fe81d.tar.gz gnuradio-6e1b2888b3001c1c80fd78a714f5e5b98b1fe81d.tar.bz2 gnuradio-6e1b2888b3001c1c80fd78a714f5e5b98b1fe81d.zip |
core: added a stub class for gr_tuntap_pdu to compile on OSX (tested) and Windows (untested).
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/io/gr_tuntap_pdu.cc | 15 | ||||
-rw-r--r-- | gnuradio-core/src/lib/io/gr_tuntap_pdu.h | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/io/gr_tuntap_pdu.cc b/gnuradio-core/src/lib/io/gr_tuntap_pdu.cc index 44de1a5f7..d369310a6 100644 --- a/gnuradio-core/src/lib/io/gr_tuntap_pdu.cc +++ b/gnuradio-core/src/lib/io/gr_tuntap_pdu.cc @@ -134,8 +134,19 @@ int gr_tuntap_pdu::tun_alloc(char *dev, int flags) { #else //if not linux -boost::shared_ptr<gr_block> gr_make_tuntap_pdu (std::string dev, int MTU){ - boost::shared_ptr<gr_block> rv; +// Just a stub class and factory function for swig. +class gr_tuntap_pdu +{ +private: + gr_tuntap_pdu() {}; +public: + ~gr_tuntap_pdu() {}; +}; + +gr_block_sptr +gr_make_tuntap_pdu(std::string dev, int MTU) +{ + gr_block_sptr rv; throw std::runtime_error("tuntap only implemented on linux"); return rv; } diff --git a/gnuradio-core/src/lib/io/gr_tuntap_pdu.h b/gnuradio-core/src/lib/io/gr_tuntap_pdu.h index 0e8071c30..384d57703 100644 --- a/gnuradio-core/src/lib/io/gr_tuntap_pdu.h +++ b/gnuradio-core/src/lib/io/gr_tuntap_pdu.h @@ -59,7 +59,7 @@ class GR_CORE_API gr_tuntap_pdu : public gr_stream_pdu_base #else // if not linux -GR_CORE_API boost::shared_ptr<gr_block> gr_make_tuntap_pdu (std::string dev, int MTU=0); +GR_CORE_API gr_block_sptr gr_make_tuntap_pdu (std::string dev, int MTU=0); #endif |