I am trying to access a C function with the following prototype from python using swig:
int cosetCoding(int writtenDataIn, int newData, const int memoryCells, int *cellFailure, int failedCell);
Swig creates the .so with no problems and I can import it into python, but when I try to access it with the following:
cosetCoding.cosetCoding(10,11,8,[0,0,0,0,0,0,0,0],0)
I get the following traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: in method 'cosetCoding', argument 4 of type 'int *'
The pointer is supposed to be an int array with size defined by memoryCells