Gambit Scheme FFI

852 Views Asked by At

I am trying to use ffi to call opencv's cvReleaseCapture,

void cvReleaseCapture( CvCapture** capture );

http://www.ai.rug.nl/vakinformatie/pas/content/Highgui/opencvref_highgui.htm

I have tried,

(define release-capture (c-lambda ((pointer (pointer "CvCapture"))) void "cvReleaseCapture"))

didn't relly worked.

1

There are 1 best solutions below

0
On

(c-define-type CvCapture (pointer (pointer (struct "CvCapture"))))

(define release-capture (c-lambda (CvCapture) void "cvReleaseCapture"))