NAME
ffffiipprreeppcciiff - Prepare a ffffiicciiff structure for use with ffffiiccaallll or
ffffiipprreeppcclloossuurree.SYNOPSIS
##iinncclluuddee <
ffistatus ffffiipprreeppcciiff(fficif *cif, ffiabi abi, unsigned int nargs, ffitype *rtype, ffitype **atypes);> DESCRIPTION
The ffffiipprreeppcciiff function prepares a ffffiicciiff structure for use with ffffiiccaallll or ffffiipprreeppcclloossuurree. abi specifies a set of calling conventions to use. atypes is an array of nargs pointers to ffffiittyyppee structs that describe the data type, size and alignment of each argument. rtype points to an ffffiittyyppee that describes the data type, size and alignment of the return value.RETURN VALUES
Upon successful completion, ffffiipprreeppcciiff returns FFFFIIOOKK. It will return FFFFIIBBAADDTTYYPPEEDDEEFF if cif is NNUULLLL or atypes or rtype is malformed. If abi does not refer to a valid ABI, FFFFIIBBAADDAABBII will be returned. AvailableABIs are defined in <
> and < >. SEE ALSO
ffi(3), fficall(3), ffiprepclosure(3) Darwin July 20, 2007 Darwin