Re: Callback from C to Eiffel
Eric Bezault <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.devel |
|---|---|
| Message-ID | <[email protected]> |
Berend de Boer wrote:
> =========================foo_c.c=========================
> #include "foo_c.h"
>
> EIF_REFERENCE signal_object;
> void (*signal_callback)(EIF_REFERENCE, EIF_INTEGER_32);
>
> void foo_c()
> {
> (signal_callback) (eif_adopt(signal_object), 1);
> }
My guess is that you should use `eif_access' (and not
`eif_adopt'). Manu, can you confirm?
--
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone