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!!