Type abbreviation
c_signatureType abbreviation
c_typeType abbreviation
c_objectType abbreviation
c_functionType abbreviation
type c_function
Function
val defineForeignFun : (c_structure * c_signature) -> (name -> c_function)
c_structure and then combined with the type information associated with the c_signature for that name. The result is a c_function object which can then be supplied with arguments and called.
Function
val call : c_function -> (c_object list * c_object) -> unit
c_function object and a list of objects representing the arguments, calls the associated foreign function and returns the result to the other given object. Of course, all the type information for c_function, argument objects and result object must match accordingly.