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


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to