summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau2011-03-15 12:30:27 -0400
committerTom Rondeau2011-03-15 12:30:27 -0400
commiteb3a4fe528452415eb877b2b76e1006fc47bc655 (patch)
treebd923d9993129c1b499a57af5b8efa6714d1de73
parentee849707c09335f4c682151044a0e65321f7939d (diff)
downloadgnuradio-eb3a4fe528452415eb877b2b76e1006fc47bc655.tar.gz
gnuradio-eb3a4fe528452415eb877b2b76e1006fc47bc655.tar.bz2
gnuradio-eb3a4fe528452415eb877b2b76e1006fc47bc655.zip
gruel: fixed swig interface file to dereference pmt_t.
-rw-r--r--gruel/src/swig/pmt_swig.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i
index 54b50660d..6435e03cc 100644
--- a/gruel/src/swig/pmt_swig.i
+++ b/gruel/src/swig/pmt_swig.i
@@ -36,7 +36,12 @@
using namespace pmt;
%}
+// Template intrusive_ptr for Swig to avoid dereferencing issues
+class pmt_base;
+%import <intrusive_ptr.i>
+%template(swig_int_ptr) boost::intrusive_ptr<pmt_base>;
+typedef boost::intrusive_ptr<pmt_base> pmt_t;
/*
* ------------------------------------------------------------------------