summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/io/gr_tuntap_pdu.cc15
-rw-r--r--gnuradio-core/src/lib/io/gr_tuntap_pdu.h2
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