Re: [Pharo-dev] FFI callout arguments - references to internal objects

2016-09-26 Thread Ben Coman
Hi Esteban, Your advice lead me to make some progress. Could you have a review? http://blog.openinworld.com/2016/09/pharo-libclang-ffi-part-5-client-data-and-recursive-visitorcallbacks/ Its perhaps a little low level and I'd like to make CXClientData a wrapper for some of the complexity. But

Re: [Pharo-dev] FFI callout arguments - references to internal objects

2016-09-25 Thread Esteban Lorenzano
Hi Ben, I will take a better look tomorrow morning, but as first sight, seems to be that you want to declare SomeObject and receive it as argument to the callback, while you are receiving just an ExternalAddress. If is that the problem what happens is that callbacks do not handle *any type*

[Pharo-dev] FFI callout arguments - references to internal objects

2016-09-24 Thread Ben Coman
I'm seeking some support for Part 5 of my FFI tutorial http://blog.openinworld.com/2016/09/pharo-libclang-ffi-part-5-client-data-and-recursive-visitorcallbacks/ where I'm trying to replicate some C code where: * client_data is a void pointer, and an argument to a callout function * a reference to