This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
[Question]pass structure by reference
- From: ivo f <ivo dot fried at gmx dot net>
- To: libffi-discuss at sourceware dot org
- Date: Fri, 4 Feb 2011 00:55:28 -0800 (PST)
- Subject: [Question]pass structure by reference
Hello,
I hope this question isn't too noobish, but I'm kind of stuck with libffi. I
was trying around passing structures with libffi, which works perfectly
well, but I couldn't figure out if and especially how I can pass pointers to
structures. The only way i see to pass a pointer is to use the
FFI_TYPE_POINTER definition which specifies exactly one argument. The
structure definition allows me to wrap any number of arguments into a
structure and pass them as such, but is there a way to combine both? So to
pass a structure using libffi by reference?
Thanks in advance for your help!
--
View this message in context: http://old.nabble.com/-Question-pass-structure-by-reference-tp30842627p30842627.html
Sent from the Sourceware - libffi-discuss mailing list archive at Nabble.com.