On Wed, Jan 03, 2007 at 04:19:24PM +0800, Jeremy Chew wrote:
> Hi,
>
> I'm working on a C++ extension.
>
> How can we use SWIG to program a callback from C++ to Python that passes a
> gr_message_sptr? I'm trying to avoid polling the C++ module from Python
> code.
>
> Rgds,
> Jeremy
Look at the code in gr_feval.{h,cc,i}, and the test code in qa_feval.py.
It currently supports callbacks from C++ to python using double,
complex, long and void. Passing a gr_message_sptr is completely analogous.
Eric
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio