This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]