How to access an Array and a struct within a struct wrapped by Swig ?
emmanuel.rivoire at gmail.com
emmanuel.rivoire at gmail.com
Sat Aug 16 07:13:31 EDT 2008
Ok, Swig needs the structure to be declared like this :
typedef struct SIn
{
int in1, in2;
} SIn;
Else, it doesn't understand it's a structure... :-S
Now, I can write to it.
I also found out that Swig didn't allow to write to the array :
http://www.swig.org/Doc1.3/SWIG.html#SWIG_nn34 ... :-S
So I just have to find out how to read the array, and I'll be all
good..!
More information about the Python-list
mailing list