Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / ctypes / libffi / man / ffi.3
1 .Dd February 15, 2008
2 .Dt FFI 3
3 .Sh NAME
4 .Nm FFI
5 .Nd Foreign Function Interface
6 .Sh LIBRARY
7 libffi, -lffi
8 .Sh SYNOPSIS
9 .In ffi.h
10 .Ft ffi_status
11 .Fo ffi_prep_cif
12 .Fa "ffi_cif *cif"
13 .Fa "ffi_abi abi"
14 .Fa "unsigned int nargs"
15 .Fa "ffi_type *rtype"
16 .Fa "ffi_type **atypes"
17 .Fc
18 .Ft void
19 .Fo ffi_call
20 .Fa "ffi_cif *cif"
21 .Fa "void (*fn)(void)"
22 .Fa "void *rvalue"
23 .Fa "void **avalue"
24 .Fc
25 .Sh DESCRIPTION
26 The foreign function interface provides a mechanism by which a function can
27 generate a call to another function at runtime without requiring knowledge of
28 the called function's interface at compile time.
29 .Sh SEE ALSO
30 .Xr ffi_prep_cif 3 ,
31 .Xr ffi_call 3