« Return to Thread: Python - Getting pointer address

Re: Python - Getting pointer address

by wsfulton :: Rate this Message:

| View in Thread

On 06/07/12 10:08, Simon Busard wrote:

> Hello,
>
> I'm wrapping some C code for Python using SWIG. In my C code, there is a
> function asking for a pointer to a pointer
>
> void bdd_and_accumulate(DdManager * dd, bdd_ptr * a, bdd_ptr b)
>
> (where bdd_ptr is already a pointer).
>
> Is there a way, from a bdd_ptr wrapped by SWIG to get its address to
> pass it to this function? Do I have to write an helper function in C and
> wrap it using SWIG or is there a clever/easier way?
You need to write a helper function.

William

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: Python - Getting pointer address