package ctypes-foreign

  1. Overview
  2. Docs

Module Ctypes_ffi_stubsSource

Sourcetype 'a ffitype = Ctypes_ptr.voidp
Sourcetype struct_ffitype
Sourceval primitive_ffitype : 'a Ctypes_primitive_types.prim -> 'a ffitype
Sourceval pointer_ffitype : unit -> Ctypes_ptr.voidp ffitype
Sourceval void_ffitype : unit -> unit ffitype
Sourceval allocate_struct_ffitype : int -> struct_ffitype
Sourceval struct_type_set_argument : struct_ffitype -> int -> _ ffitype -> unit
Sourceval complete_struct_type : struct_ffitype -> unit
Sourceval ffi_type_of_struct_type : struct_ffitype -> _ ffitype
Sourcetype callspec
Sourceval allocate_callspec : check_errno:bool -> runtime_lock:bool -> thread_registration:bool -> callspec
Sourceval add_argument : callspec -> _ ffitype -> int
Sourceval prep_callspec : callspec -> int -> _ ffitype -> unit
Sourceval call : string -> (_, _ Ctypes_static.fn) Ctypes_ptr.Fat.t -> callspec -> (Ctypes_ptr.voidp -> (Obj.t * int) array -> unit) -> (Ctypes_ptr.voidp -> 'a) -> 'a
Sourcetype boxedfn =
  1. | Done of Ctypes_ptr.voidp -> unit * callspec
  2. | Fn of Ctypes_ptr.voidp -> boxedfn
Sourcetype funptr_handle
Sourceval make_function_pointer : callspec -> int -> funptr_handle
Sourceval raw_address_of_function_pointer : funptr_handle -> Ctypes_ptr.voidp
Sourceval set_closure_callback : (int -> Obj.t) -> unit
Sourceexception Ffi_internal_error of string
Sourceexception CallToExpiredClosure