Hi, The old ODBC/FFI has quite some bindings in ODBCLibrary class that may be of some help. To load FFI (taken from http://pharo.gemtalksystems.com/book/PharoTools/FFI/ ): Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfFFI'; load. (Smalltalk at: #ConfigurationOfFFI) project lastVersion load and ODBC: Gofer new squeaksource: 'ODBC'; package: 'ConfigurationOfODBC'; load. Both works very well with Pharo 3 (didn't try yet in Pharo 4) Regards Alain Le 15/10/2014 22:59, Nicolai Hess a écrit :
2014-10-15 19:18 GMT+02:00 Eliot Miranda <eliot.miranda@gmail.com <mailto:eliot.miranda@gmail.com>>:
Hi Annick,
On Wed, Oct 15, 2014 at 7:57 AM, Annick Fron <list@afceurope.com <mailto:list@afceurope.com>> wrote:
What is the syntax to describe an external structure with an array of int of size 6 ?
I know only the syntax
fields ^#( (param1 âlongâ) (param2 âlongâ) (param3 âlongâ) (param4 âlongâ) (param5 âlongâ) (param6 âlongâ) )
Hmm. Good question. It seems you can write
fields "IAXCallStateEvent defineFields" ^#( (type 'long') (callNo 'long') (state 'long') (format 'long') (vformat 'long') (remote 'char[256]') (remoteName 'char[256]') (local 'char[256]') (localContext 'char[256]') )
But as a community we really need to document the FFI more thoroughly :-/
+1 I can not even find up to date information on how to *install* current working FFI. Aren't there any "alive" projects build on FFI (old or Alien-FFI). It would help to see more real-life examples.
Annick
-- best, Eliot