[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Callback from C++ to Python Passing gr_message_sp

From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Callback from C++ to Python Passing gr_message_sptr
Date: Wed, 3 Jan 2007 00:57:27 -0800
User-agent: Mutt/1.5.9i

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]