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 <[email protected]> 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[1]?  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
alignment issues...)
Passing structures to functions using cinvoke can only be done
using pointers though.[1]

Cheers, Remi

[1] 
http://www.nongnu.org/cinvoke/doc/cinvoke_8h.html#4d288cacc9bde484cad7d8ed1b76c1a5

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to