Ctypes_ffi.MakeDynamic function calls based on libffi
module Closure_properties : CLOSURE_PROPERTIESval function_of_pointer :
?name:string ->
abi:Libffi_abi.abi ->
check_errno:bool ->
release_runtime_lock:bool ->
('a -> 'b) Ctypes_static.fn ->
('a -> 'b) Ctypes_static.static_funptr ->
'a ->
'bBuild an OCaml function from a type specification and a pointer to a C function.
val pointer_of_function :
abi:Libffi_abi.abi ->
acquire_runtime_lock:bool ->
thread_registration:bool ->
('a -> 'b) Ctypes_static.fn ->
('a -> 'b) ->
('a -> 'b) Ctypes_static.static_funptrBuild an C function from a type specification and an OCaml function.
The C function pointer returned is callable as long as the OCaml function value is live.
val free_funptr : _ funptr -> unitval funptr_of_fun :
abi:Libffi_abi.abi ->
acquire_runtime_lock:bool ->
thread_registration:bool ->
('a -> 'b) Ctypes_static.fn ->
('a -> 'b) ->
('a -> 'b) funptrval funptr_of_static_funptr :
('a -> 'b) Ctypes_static.static_funptr ->
('a -> 'b) funptrval funptr_to_static_funptr :
('a -> 'b) funptr ->
('a -> 'b) Ctypes_static.static_funptrval report_leaked_funptr : (string -> unit) ref