[Haskell-cafe] ANNOUNCE: cinvoke 0.1 released
rturk at science.uva.nl
Tue Mar 8 11:36:07 CET 2011
On Tue, Mar 08, 2011 at 01:15:26AM +0000, Felipe Almeida Lessa wrote:
> On Mon, Mar 7, 2011 at 6:32 PM, Remi Turk <rturk at science.uva.nl> wrote:
> > - If you need to pass C structs (by value), you'll have to use
> > libffi: cinvoke doesn't support them at all.
> What about CInvStructure? I was just glancing at the documentation
> when I saw this.
That's a part of cinvoke I have not implemented (and probably
won't, just like callbacks and a few other things, at least until
there is some demand for them).
However, the CInvStructure functions are used to construct
descriptions and instances of C structures at run-time. (think
Passing structures to functions using cinvoke can only be done
using pointers though.
More information about the Haskell-Cafe