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

Re: Binding for a function receiving a C callback without arguments



Emmanuel Rodriguez wrote:
>
> I need to write the bindings for a C function that receives a callback which
> has no arguments.

[snip]

> Someome knows of an exisinting C API that has a similar callback and how I
> can overcome this?

Save yourself and the authors of other bindings some grief, and convince the
upstream to add a user data pointer to *all* callback functions.  You have
derived for yourself the proof of why this is necessary.  ;-)



-- 
muppet <scott at asofyet dot org>



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