help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] C Callbacks


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] C Callbacks
Date: Tue, 20 May 2008 06:54:01 +0200
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Udo Schneider wrote:
All,

is there any way to create regular C-Callbacks from within GST? I need some magic which provides a function pointer (to a block or method) which I can pass to a C func as callback.

As far as I can see the underlying libffi supports this using ffi_prep_closure_loc(). Is this already available in GST?

No, but callbacks are available without using libffi. You use functions in the vm_proxy, see the GLUT bindings in the opengl branch of my repository for a simple example.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]