Subject:
[ruby-ffi] Re: Callback support in FFI?
From:
przemo_li
Date:
8/19/11 6:48 AM
To:
ruby-ffi

Aghhh!
Do not know how I could missed it. BIG thx!

BTW will it also work
method(ruby_method_name).to_proc
for suppling call back to C-function?


On Aug 19, 12:46 pm, Wayne Meissner <wmeiss...@gmail.com> wrote:
> There is a qsort example which takes callbacks athttps://github.com/ffi/ffi/blob/master/samples/qsort.rband some more
> examples inhttps://github.com/ffi/ffi/wiki/Examples
>
> On Aug 19, 7:02 pm, przemo_li <an.prze...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm trying to implement freeGLUT bindings. Is it possible? I need to
> > declare function that takes callback function without any parameters.
> > Any luck with FFI?
>
> > PS add info about callback in wiki!