I was able to generate python bindings for a camera library using SWIG and I am able to capture and save image using the library\'s inbuilt fun开发者_运维技巧ctions.
Inside my template function I have the following code: TypeName myFunction() { TypeName result; void * storage = malloc( sizeof( TypeName ) );