help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Some issues with C callouts


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Some issues with C callouts
Date: Tue, 29 Sep 2009 02:19:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 09/28/2009 09:52 PM, Dmitry Matveev wrote:
In this case, you should create a wrapper to xcb_setup_roots_iterator
that accepts a pointer to the structure and copies the return value there.


Thank you, Paolo!

I've made the following:

void
gst_xcb_setup_roots_iterator (const xcb_setup_t *setup,
                                                          xcb_screen_iterator_t 
*iter)
{       if (setup&&  iter)
                *iter = xcb_setup_roots_iterator (setup);
}

in my shared library and

Xcb class>>  setupRootsIterator: aSetup ptr: iterPtr [
     <cCall: 'gst_xcb_setup_roots_iterator' returning: #void args:
#(#cObject #{XcbScreenIterator})>
]

in the gst binding.. Now it works!!

Yes, that's exactly what I meant.  Nice that it works! :-)

Paolo




reply via email to

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