1FFI(3)                   BSD Library Functions Manual                   FFI(3)
2

NAME

4     FFI — Foreign Function Interface
5

LIBRARY

7     libffi, -lffi
8

SYNOPSIS

10     #include <ffi.h>
11
12     ffi_status
13     ffi_prep_cif(ffi_cif *cif, ffi_abi abi, unsigned int nargs,
14         ffi_type *rtype, ffi_type **atypes);
15
16     void
17     ffi_prep_cif_var(ffi_cif *cif, ffi_abi abi, unsigned int nfixedargs,
18         unsigned int ntotalargs, ffi_type *rtype, ffi_type **atypes);
19
20     void
21     ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue);
22

DESCRIPTION

24     The foreign function interface provides a mechanism by which a function
25     can generate a call to another function at runtime without requiring
26     knowledge of the called function's interface at compile time.
27

SEE ALSO

29     ffi_prep_cif(3), ffi_prep_cif_var(3), ffi_call(3)
30
31                               February 15, 2008
Impressum