Re: Callback from C to Eiffel

Jocelyn <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
You might be interested in the article on Eiffelroom: 
http://www.eiffelroom.com/article/protecting_objects
And my guess is also that you should use eif_access.

-- Jocelyn

On 4/16/2008 14:00 PM, Eric Bezault wrote:
> 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?
>
>   



-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.