ctypes question about call by reference

Oliver Andrich oliver.andrich at gmail.com
Sun Sep 24 11:52:25 EDT 2006


Hi,

hopefully someone with some ctypes experience can help me. I guess
this is a trivial task again, but I have been googling, reading,
experimenting the whole afternoon without any success.

I have a given C function signature:

char *MagickGetException(MagickWand *wand,ExceptionType *severity)

- ExceptionType is an enum
- MagickWand is somewhat strange, but so far it works fine without any
type mangling.

How would I wrap this thing using ctypes? Can anybody help me with that?

Best regards,
Oliver

-- 
Oliver Andrich <oliver.andrich at gmail.com> --- http://roughbook.de/



More information about the Python-list mailing list