package ctypes-foreign

  1. Overview
  2. Docs

Parameters

Signature

module Ffi : sig ... end
exception CallToExpiredClosure
val funptr : ?abi:Libffi_abi.abi -> ?name:string -> ?check_errno:bool -> ?runtime_lock:bool -> ?thread_registration:bool -> ('a -> 'b) Ctypes_static.fn -> ('a -> 'b) Ctypes_static.typ
val funptr_opt : ?abi:Libffi_abi.abi -> ?name:string -> ?check_errno:bool -> ?runtime_lock:bool -> ?thread_registration:bool -> ('a -> 'b) Ctypes_static.fn -> ('a -> 'b) option Ctypes_static.typ
val funptr_of_raw_ptr : nativeint -> (unit -> unit) Ctypes_static.static_funptr
val ptr_of_raw_ptr : nativeint -> unit Ctypes.ptr
val foreign_value : ?from:Dl.library -> string -> 'a Ctypes.typ -> 'a Ctypes.ptr
val foreign : ?abi:Libffi_abi.abi -> ?from:Dl.library -> ?stub:bool -> ?check_errno:bool -> ?release_runtime_lock:bool -> string -> ('a -> 'b) Ctypes_static.fn -> 'a -> 'b
module type Funptr = sig ... end
val dynamic_funptr : ?abi:Libffi_abi.abi -> ?runtime_lock:bool -> ?thread_registration:bool -> ('a -> 'b) Ctypes_static.fn -> (module Funptr with type fn = 'a -> 'b)
val report_leaked_funptr : (string -> unit) ref
OCaml

Innovation. Community. Security.