[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] tunnel.py and PS3
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] tunnel.py and PS3 |
Date: |
Mon, 4 Feb 2008 12:41:04 -0800 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Mon, Feb 04, 2008 at 03:36:26PM -0500, Tim Meehan wrote:
> The relevant line in if_tun.h is
>
> #define TUNSETIFF _IOW('T', 202, int)
>
> I was not sure how to swig the _IOW stuff. If anyone can provide a hint I
> will try.
>
It may be easiest to write a small stand-alone function that just
returns the value of TUNSETIFF and then swig that. E.g.,
int
get_TUNSETIFF()
{
#ifdef TUNSETIFF
return TUNSETIFF;
#else
return -1;
#endif
}
Feel free to drop it into gnuradio-core/src/lib/general and send a patch.
Thanks,
Eric